Questions tagged [spring]

The Spring Framework is an open source framework for application development on the Java platform. At its core is rich support for component-based architectures, and it currently has over a dozen highly integrated modules.

1
vote
0answers
6 views

How to capture save or update events in Couchbase

I would like to be able to do some data manipulation when documents are updated or created in Couchbase.Documents can arrive in our database either via Sync Gateway or our own code which streams ...
0
votes
0answers
23 views

How to fix null pointer exception on constructor injection - Spring [duplicate]

I have a Spring class that looks like the below:package com.abc.mysource.mypackage;@Componentpublic class MyHelper {@Autowired@Qualifier("helperClock")Clock helperClock;...
0
votes
0answers
13 views

spring data couchbase save entity does not return id

I'm working on a spring webflux project with couchbase.The problem is when I want to save an entity, the returned entity does not contain its ID auto generated.And I need its ID in order to update ...
0
votes
0answers
8 views

JMS transacted session - after commit

In my app I use Spring's DefaultMessageListenerContainer with sessionTransacted set to true. I need to execute a method which will be invoked only in case of successful listener execution which means ...
-1
votes
1answer
25 views

How to get Request URL in Spring Boot

I need to submit request URL as a String parameter to a method @RequestMapping(value="/test", method=RequestMethod.POST)public void testItt(@RequestParam String requestParameter, ...
0
votes
0answers
28 views

Unable to build Hibernate SessionFactory in Spring Boot

I have a Spring Boot application and I am trying to use Postgres but the applications fails to start each time.Here is the stack trace:"C:\Program Files\Java\jdk1.8.0_141\bin\java.exe" "-javaagent:...
0
votes
0answers
8 views

Alternative for Http401AuthenticationEntryPoint in spring boot version 2.0.1

I have upgraded my spring boot project to version 2.0.1.RELEASE.Previously I used the following code for spring boot version 1.5.8. http.authorizeRequests().antMatchers(HttpMethod.OPTIONS,...
0
votes
1answer
24 views

Is Kafka the right solution for messages with dependencies?

We have messages which are dependent.Ex. say we have 4 messages M1, M2, M1_update1,(should be processed only after M1 is processed),M3 (should be processed only after M1,M2 are processed).In this ...
0
votes
1answer
36 views

Need to run a springboot app with an alternate main class

I have a Spring Boot app that runs fine. I've written an additional class that is intended to validate some aspects of the defined Spring context and attached properties. It's intended to be run as ...
0
votes
1answer
9 views

Spring config server return null for properties in client application

Spring config server work properly and return below response for url-http://localhost:8888/limits-service/default{"name": "limits-service","profiles": ["default"],"label"...
0
votes
2answers
25 views

How to log validation errors in Spring boot application

I'm using SpringBoot (spring-boot-starter-web 1.5.16.RELEASE) and hibernate-validator 6.0.11.Final in my REST service.DTO objects annotated with proper validation constrains (UPDATE: I'm using @...
0
votes
1answer
14 views

POST Multipart file as form data to a REST service

I am trying to POST multipart file as a form data to a REST service which returns me a url after it saved at REST service end. In postman the request look like this.I have a Spring Boot service ...
0
votes
1answer
24 views

Custom UserDetailsService Impl not being Called in SpringSecurity

My Custom UserDetailsServiceimport org.springframework.beans.factory.annotation.Autowired;import org.springframework.security.core.userdetails.User;import org.springframework.security.core....
0
votes
1answer
25 views

Springboot war deployment to tomcat 8.5

I have built a spring boot war file using maven, When I try to deploy the war file to an external tomcat server in command prompt. I get an exception.Error creating bean with name '...
-1
votes
1answer
30 views

Swift sending 'map' as query parameter

This is a simple question but I can't find out how to do this. I have a Java backend that looks as follows:@RequestMapping(value="/batch", method=RequestMethod.GET)public List<...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,