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



Add context path to Spring Boot application- Stack Overflow

Add context path to Spring Boot application- Stack Overflow

Question I am trying to set a Spring Boot applications context root programmatically. The reason for the context root is we want the app to be accessed from localhost:port/{app_na……

10-23 DETAIL
How to inject dependencies into a self-instantiated object in Spring?- Stack Overflow

How to inject dependencies into a self-instantiated object in Spring?- Stack Overflow

Question Let’s say we have a class: public class MyClass { @Autowired private AnotherBean anotherBean; } Then we created an object of this class (or some other framework……

10-23 DETAIL
Spring schemaLocation fails when there is no internet connection- Stack Overflow

Spring schemaLocation fails when there is no internet connection- Stack Overflow

Question I am using Spring and in application-context.xml I have the following definitions: ….. When my internet connection is lost, I cannot run my application via tomca……

10-23 DETAIL
Spring Boot REST service exception handling- Stack Overflow

Spring Boot REST service exception handling- Stack Overflow

Question I am trying to set up a large-scale REST services server. We’re using Spring Boot 1.2.1 Spring 4.1.5, and Java 8. Our controllers are implementing @RestController……

10-23 DETAIL
Spring @Transactional – isolation, propagation- Stack Overflow

Spring @Transactional – isolation, propagation- Stack Overflow

Question Can someone explain what isolation & propagation parameters are for in the @Transactional annotation via real-world example? Basically when and why I should choose ……

10-23 DETAIL
Spring @PropertySource using YAML- Stack Overflow

Spring @PropertySource using YAML- Stack Overflow

Question Spring Boot allows us to replace our application.properties files with YAML equivalents. However I seem to hit a snag with my tests. If I annotate my TestConfiguration (a……

10-23 DETAIL
Getting Spring Application Context- Stack Overflow

Getting Spring Application Context- Stack Overflow

Question Is there a way to statically/globally request a copy of the ApplicationContext in a Spring application? Assuming the main class starts up and initializes the application ……

10-23 DETAIL
How to use JNDI DataSource provided by Tomcat in Spring?- Stack Overflow

How to use JNDI DataSource provided by Tomcat in Spring?- Stack Overflow

Question It is said that in the Spring javadoc article about DriverManagerDataSource class, that this class is very simple and that it is recommended to use a JNDI DataSource pr……

10-23 DETAIL
Angular2/Spring Boot Allow Cross Origin on PUT- Stack Overflow

Angular2/Spring Boot Allow Cross Origin on PUT- Stack Overflow

Question I have a little problem on my web application: an angular2 app connected to a spring boot API. I can’t access my request from the angular2 app. I get this error : ……

10-23 DETAIL
Mapping ManyToMany with composite Primary key and Annotation:- Stack Overflow

Mapping ManyToMany with composite Primary key and Annotation:- Stack Overflow

Question I’m trying to create manytomany realation between Student and Teaching Course using Composite Primary key: my classes: @Entity @Table(name=”Student_mtm_cId……

10-23 DETAIL