• Now all data be ready for publish, We had made our blog alive now. Haha.



  • These days CCP GFW blocked all the IPs from US and when I switch my IP in google Cloud, the disk data cannot be restore again. I have to restart my blog totally, Now the website is still building…



Execute method on startup in Spring- Stack Overflow

Execute method on startup in Spring- Stack Overflow

Question Is there any Spring 3 feature to execute some methods when the application starts for the first time? I know that I can do the trick of setting a method with @Scheduled a……

10-23 DETAIL
How to respond with HTTP 400 error in a Spring MVC @ResponseBody method returning String?- Stack Overflow

How to respond with HTTP 400 error in a Spring MVC @ResponseBody method returning String?- Stack Overflow

Question I’m using Spring MVC for a simple JSON API, with @ResponseBody based approach like the following. (I already have a service layer producing JSON directly.) @Request……

10-23 DETAIL
How to enable request scope in async task executor- Stack Overflow

How to enable request scope in async task executor- Stack Overflow

Question In my app I have some async web services. Server accept request, return OK response and start processing request with AsyncTaskExecutor. My question is how to enable requ……

10-23 DETAIL
How to enable request scope in async task executor- Stack Overflow

How to enable request scope in async task executor- Stack Overflow

Question In my app I have some async web services. Server accept request, return OK response and start processing request with AsyncTaskExecutor. My question is how to enable requ……

10-23 DETAIL
Spring Boot JPA – configuring auto reconnect- Stack Overflow

Spring Boot JPA – configuring auto reconnect- Stack Overflow

Question I have a nice little Spring Boot JPA web application. It is deployed on Amazon Beanstalk and uses an Amazon RDS for persisting data. It is however not used that often and……

10-23 DETAIL
How to execute IN() SQL queries with Spring’s JDBCTemplate effectivly?- Stack Overflow

How to execute IN() SQL queries with Spring’s JDBCTemplate effectivly?- Stack Overflow

Question I was wondering if there is a more elegant way to do IN() queries with Spring’s JDBCTemplate. Currently I do something like that: StringBuilder jobTypeInClauseBuild……

10-23 DETAIL
How to read values from properties file?- Stack Overflow

How to read values from properties file?- Stack Overflow

Question I am using spring. I need to read values from properties file. This is internal properties file not the external properties file. Properties file can be as below. some.……

10-23 DETAIL
Only using @JsonIgnore during serialization, but not deserialization- Stack Overflow

Only using @JsonIgnore during serialization, but not deserialization- Stack Overflow

Question 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 @Json……

10-23 DETAIL
When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean?- Stack Overflow

When using Spring Security, what is the proper way to obtain current username (i.e. SecurityContext) information in a bean?- Stack Overflow

Question I have a Spring MVC web app which uses Spring Security. I want to know the username of the currently logged in user. I’m using the code snippet given below . Is ……

10-23 DETAIL
Combining Spring project and Jersey- Stack Overflow

Combining Spring project and Jersey- Stack Overflow

Question I’ve built a project with Spring JPA, and now I want to use it in my Jersey project. I’ve added my SJPA project as a dependency in my pom.xml I would like to ……

10-23 DETAIL