• 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…



How to log SQL statements in Spring Boot?- Stack Overflow

How to log SQL statements in Spring Boot?- Stack Overflow

Question I want to log SQL statements in a file. I have the following properties in application.properties spring.datasource.url=… spring.datasource.username=user spring.dat……

10-23 DETAIL
JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object- Stack Overflow

JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object- Stack Overflow

Question I am getting the following error when trying to get a JSON request and process it: org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type……

10-23 DETAIL
Spring AOP vs AspectJ- Stack Overflow

Spring AOP vs AspectJ- Stack Overflow

Question I am under the impression that Spring AOP is best used for application specific tasks such as security, logging, transactions, etc. as it uses custom Java5 annotations as……

10-23 DETAIL
Spring boot @ResponseBody doesn’t serialize entity id- Stack Overflow

Spring boot @ResponseBody doesn’t serialize entity id- Stack Overflow

Question Have a strange problem and can’t figure out how to deal with it. Have simple POJO: @Entity @Table(name = “persons”) public class Person { @Id @G……

10-23 DETAIL
Spring Hibernate – Could not obtain transaction-synchronized Session for current thread- Stack Overflow

Spring Hibernate – Could not obtain transaction-synchronized Session for current thread- Stack Overflow

Question I created an application with spring + hibernate, but I always get this error. This is my first application with hibernate, I read some guides but I can not solve this pr……

10-23 DETAIL
Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed- Stack Overflow

Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed- Stack Overflow

Question When I compile my spring project, I got the following error. Error creating bean with name ‘entityManagerFactory’ defined in class path resource [org/sp……

10-23 DETAIL
How To Inject AuthenticationManager using Java Configuration in a Custom Filter- Stack Overflow

How To Inject AuthenticationManager using Java Configuration in a Custom Filter- Stack Overflow

Question I’m using Spring Security 3.2 and Spring 4.0.1 I’m working on converting an xml config into a Java config. When I annotate AuthenticationManager with @Autowir……

10-23 DETAIL
Redirect to an external URL from controller action in Spring MVC- Stack Overflow

Redirect to an external URL from controller action in Spring MVC- Stack Overflow

Question I have noticed the following code is redirecting the User to a URL inside the project, @RequestMapping(method = RequestMethod.POST) public String processForm(HttpServ……

10-23 DETAIL
How to make spring inject value into a static field- Stack Overflow

How to make spring inject value into a static field- Stack Overflow

Question I know this may looks like a previously asked question but I’m facing a different problem here. I have a utility class that has only static methods. I don’t a……

10-23 DETAIL
How to return a custom object from a Spring Data JPA GROUP BY query- Stack Overflow

How to return a custom object from a Spring Data JPA GROUP BY query- Stack Overflow

Question I’m developing a Spring Boot application with Spring Data JPA. I’m using a custom JPQL query to group by some field and get the count. Following is my reposit……

10-23 DETAIL