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



Spring JSON request getting 406 (not Acceptable)- Stack Overflow

Spring JSON request getting 406 (not Acceptable)- Stack Overflow

Question this is my javascript: function getWeather() { $.getJSON(‘getTemperature/’ + $(‘.data option:selected’).val(), null, function(data) { ……

10-23 DETAIL
Scheduling a job with Spring programmatically (with fixedRate set dynamically)- Stack Overflow

Scheduling a job with Spring programmatically (with fixedRate set dynamically)- Stack Overflow

Question Currently I have this : @Scheduled(fixedRate=5000) public void getSchedule(){ System.out.println(“in scheduled job”); } I could change this to use a refere……

10-23 DETAIL
@RequestBody and @ResponseBody annotations in Spring- Stack Overflow

@RequestBody and @ResponseBody annotations in Spring- Stack Overflow

Question Can someone explain the @RequestBody and @ResponseBody annotations in Spring 3? What are they for? Any examples would be great. Answer There is a whole Section in the doc……

10-23 DETAIL
CORS issue – No ‘Access-Control-Allow-Origin’ header is present on the requested resource- Stack Overflow

CORS issue – No ‘Access-Control-Allow-Origin’ header is present on the requested resource- Stack Overflow

Question I have created two web applications – client and service apps.The interaction between client and service apps goes fine when they are deployed in same Tomcat instan……

10-23 DETAIL
Dynamic spring data jpa repository query with arbitrary AND clauses- Stack Overflow

Dynamic spring data jpa repository query with arbitrary AND clauses- Stack Overflow

Question I’m using Spring data jpa repositories, Got a requirement to give search feature with different fields. Entering fields before search is optional.I have 5 fields sa……

10-23 DETAIL
How do I use annotations to define different types of relationships in Hibernate 4 and Spring?- Stack Overflow

How do I use annotations to define different types of relationships in Hibernate 4 and Spring?- Stack Overflow

Question I have two classes, Foo and Bar, as follows: public class Foo { private Long fooId; private Bar bar; //Yes, this doesn’t actually make any sense, ……

10-23 DETAIL
Reading a List from properties file and load with spring annotation @Value- Stack Overflow

Reading a List from properties file and load with spring annotation @Value- Stack Overflow

Question I want to have a list of values in a .properties file, ie: my.list.of.strings=ABC,CDE,EFG And to load it in my class directly, ie: @Value(“${my.list.of.strings}R……

10-23 DETAIL
ContextLoaderListener or not?- Stack Overflow

ContextLoaderListener or not?- Stack Overflow

Question A standard spring web application (created by Roo or “Spring MVC Project” Template) create a web.xml with ContextLoaderListener and DispatcherServlet. Why do ……

10-23 DETAIL
Xml configuration versus Annotation based configuration [closed]- Stack Overflow

Xml configuration versus Annotation based configuration [closed]- Stack Overflow

Question In a few large projects i have been working on lately it seems to become increasingly important to choose one or the other (XML or Annotation). As projects grow, consiste……

10-23 DETAIL
How to get active user’s UserDetails- Stack Overflow

How to get active user’s UserDetails- Stack Overflow

Question In my controllers, when I need the active (logged in) user, I am doing the following to get my UserDetails implementation: User activeUser = (User)SecurityContextHolder.g……

10-23 DETAIL