Category "spring"

Parellel Processing Spring Batch StaxEventItemReader

I have a spring batch job defined as follows. <batch:step id="convert"> <batch:tasklet > <batch:chunk reader="contentItemReader" wri

spring boot doesn't shows custom error pages

I added spring-boot-starter-thymeleaf dependency to my project that using spring boot 2.3.1.RELEASE and placed error.html file inside src/main/resources/templat

How to handle "org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error" in Spring?

I'm adding an API to an existing Spring Boot project using @RestController. My Spring Boot experience is: This is my first time using it. The RestController wor

File inside jar is not visible for spring

All I created a jar file with the following MANIFEST.MF inside: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.3 Created-By: 1.6.0_25-b06 (Sun Microsystems

spring-boot-starter-data-jpa dependency error

I am using new version of Spring boot - 1.5.7. But , when I create new spring starter project with jpa dependency, I got strange error: Caused by: org.spr

Consider defining a bean of type 'org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository' in your configuration

I am using spring oAuthClient version 5.2.4.RELEASE By following the document link of spring security https://docs.spring.io/spring-security/site/docs/current

Read property file of one java project in another java project

Here is my problem statement: I have a project A which is built in spring and is a maven project. there is project B(not using any framework) which I am develo

Spring Boot response has already been committed exception for request to resources

I'm using Spring Boot (v1.2.4) deployed on WildFly 8.2 server. On the application I'm using font awesome v4.3. I get the "response already committed exception"

In Spring mvc application, @RequestBody is throwing java.io.EOFException

In the jsp i am passing the data as json,as in the controller method i am trying to map the data to Personbean object using @RequestMapping. But its throwi

Spring BeanCreationException: cannot resolve reference to bean exception

I am trying the example application at the following web site: JSF 2, PrimeFaces 3, Spring 3 & Hibernate 4 Integration Project But I find that when runni

'Source code does not match the bytecode' use IDEA debug JdbcTemplate

When I debug the JdbcTemplate sourcecode use IDEA,the IDE tips me:'Source code does not match the bytecode' Screenshot: and i use mvn to manage m

Getting 404 error in spring boot even though method is logging statements

My app uses Angular on the frontend and Spring Boot (w basic authentication & Spring security) on the backend. I'm using a proxy for api requests to my back

Mapping Ajax Request in Spring MVC: getting error 405 method not allowed

After making the ajax call I am getting error 405 method not allowed. I am using Spring 3.0.1, Spring-web 3.0.1. Here is the controller mapping @Controller p

Spring cloud - Zuul cannot set timeout

I have a zuul server with a config file as: server: port: 9090 eureka: client: serviceUrl: defaultZone: http://172.16.5.147:8761/eureka/ instan

X-Ray and async multithreading: segment cannot be found

I need to run multiple async methods from the main thread, which should be able to finish even after the main thread has returned a response. I've added a metho

Java NullPointer Custom Validator javax.validation.ConstraintValidator

I have the following Validator that I use to validate an Update Request. @Component public class UpdateDateValidator implements ConstraintValidator<ValidateD

Docker Compose + Spring Boot + Postgres connection

I have a Java Spring Boot app which works with a Postgres database. I want to use Docker for both of them. I initially put just the Postgres in Docker, and I ha

The bean 'exampleService.FeignClientSpecification' could not be registered. Bean already defined and overriding is disabled

My feign client class is as below along with the Application class. @FeignClient(name = "ExampleService", configuration = FeignClientConfig.class, url = "http:

Only using @JsonIgnore during serialization, but not deserialization

I have a user object that is sent to and from the server. When I send out the user object, I don't want to send the hashed password to the client. So, I added @

Can't Autowire @Repository annotated interface in Spring Boot

I'm developing a spring boot application and I'm running into an issue here. I'm trying to inject a @Repository annotated interface and it doesn't seem to work