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



Bypass GeneratedValue in Hibernate (merge data not in db?)- Stack Overflow

Bypass GeneratedValue in Hibernate (merge data not in db?)- Stack Overflow

Question My problem is the same as described in [1] or [2]. I need to manually set a by default auto-generated value (why? importing old data). As described in [1] using Hibernate……

10-23 DETAIL
Spring configuration XML schema: with or without version?- Stack Overflow

Spring configuration XML schema: with or without version?- Stack Overflow

Question I am new to Spring. One thing confuses me is that sometimes I see XML configuration files with versioned schemas, yet sometimes with non-versioned ones. For example, some……

10-23 DETAIL
Content type ‘application/x-www-form-urlencoded;charset=UTF-8’ not supported for @RequestBody MultiValueMap- Stack Overflow

Content type ‘application/x-www-form-urlencoded;charset=UTF-8’ not supported for @RequestBody MultiValueMap- Stack Overflow

Question Based on the answer for problem with x-www-form-urlencoded with Spring @Controller I have written the below @Controller method @RequestMapping(value = “/{email}/au……

10-23 DETAIL
POSTing a @OneToMany sub-resource association in Spring Data REST- Stack Overflow

POSTing a @OneToMany sub-resource association in Spring Data REST- Stack Overflow

Question Currently I have a Spring Boot application using Spring Data REST. I have a domain entity Post which has the @OneToMany relationship to another domain entity, Comment. Th……

10-23 DETAIL
No WebApplicationContext found: no ContextLoaderListener registered?- Stack Overflow

No WebApplicationContext found: no ContextLoaderListener registered?- Stack Overflow

Question I’m trying to create a simple Spring 3 application and have the following files. Please tell me the reason for this error Below is my web.xml Spring2 ……

10-23 DETAIL
Using generics in Spring Data JPA repositories- Stack Overflow

Using generics in Spring Data JPA repositories- Stack Overflow

Question I have a number of simple object types that need to be persisted to a database. I am using Spring JPA to manage this persistence. For each object type I need to build t……

10-23 DETAIL
How to serve .html files with Spring- Stack Overflow

How to serve .html files with Spring- Stack Overflow

Question I am developing a website with Spring, and am trying to serve resources that are not .jsp files (.html for example) right now i have commented out this part of my servlet……

10-23 DETAIL
how to read System environment variable in Spring applicationContext- Stack Overflow

how to read System environment variable in Spring applicationContext- Stack Overflow

Question How to read the system environment variable in the application context? I want something like : or depending on the environement. Can I have something like this in my a……

10-23 DETAIL
Type safety: Unchecked cast- Stack Overflow

Type safety: Unchecked cast- Stack Overflow

Question In my spring application context file, I have something like: In java class, the implementation looks like: private Map someMap = new HashMap(); someMap = (Ha……

10-23 DETAIL
How to create custom methods for use in spring security expression language annotations- Stack Overflow

How to create custom methods for use in spring security expression language annotations- Stack Overflow

Question I would like to create a class that adds custom methods for use in spring security expression language for method-based authorization via annotations. For example, I woul……

10-23 DETAIL