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



Understanding Spring @Autowired usage- Stack Overflow

Understanding Spring @Autowired usage- Stack Overflow

Question I am reading the spring 3.0.x reference documentation to understand Spring Autowired annotation: 3.9.2 @Autowired and @Inject I am not able to understand the below exampl……

10-30 DETAIL
Spring Boot Configure and Use Two DataSources- Stack Overflow

Spring Boot Configure and Use Two DataSources- Stack Overflow

Question I am new to Spring and Spring Boot. How can I configure and use two data sources? For example here is what I have for the first data source: application.properties #fir……

10-30 DETAIL
What causes “java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name ‘command’ available as request attribute”?- Stack Overflow

What causes “java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name ‘command’ available as request attribute”?- Stack Overflow

Question This is meant to be an extensive canonical question & answer post for these types of questions. I’m trying to write a Spring MVC web application where users c……

10-30 DETAIL
When is it necessary or convenient to use Spring or EJB3 or all of them together?- Stack Overflow

When is it necessary or convenient to use Spring or EJB3 or all of them together?- Stack Overflow

Question I’m a little confused by the mixed use of JSF2+Spring+EJB3 or any combination of those. I know one of the Spring principal characteristics is dependency injection, ……

10-30 DETAIL
Downloading a file from spring controllers- Stack Overflow

Downloading a file from spring controllers- Stack Overflow

Question I have a requirement where I need to download a PDF from the website. The PDF needs to be generated within the code, which I thought would be a combination of freemarker ……

10-30 DETAIL
What is a NoSuchBeanDefinitionException and how do I fix it?- Stack Overflow

What is a NoSuchBeanDefinitionException and how do I fix it?- Stack Overflow

Question Please explain the following about NoSuchBeanDefinitionException exception in Spring: What does it mean? Under what conditions will it be thrown? How can I prevent it? Th……

10-30 DETAIL
Spring JSF integration: how to inject a Spring component/service in JSF managed bean?- Stack Overflow

Spring JSF integration: how to inject a Spring component/service in JSF managed bean?- Stack Overflow

Question I understand that a managed bean works like a controller, because your only task is “link” the View Layer with Model. To use a bean as a managed bean I must ……

10-30 DETAIL
Difference between applicationContext.xml and spring-servlet.xml in Spring Framework- Stack Overflow

Difference between applicationContext.xml and spring-servlet.xml in Spring Framework- Stack Overflow

Question Are applicationContext.xml and spring-servlet.xml related anyhow in Spring Framework? Will the properties files declared in applicationContext.xml be available to Dispatc……

10-30 DETAIL
Why does Spring MVC respond with a 404 and report “No mapping found for HTTP request with URI […] in DispatcherServlet”?- Stack Overflow

Why does Spring MVC respond with a 404 and report “No mapping found for HTTP request with URI […] in DispatcherServlet”?- Stack Overflow

Question I’m writing a Spring MVC application deployed on Tomcat. See the following minimal, complete, and verifiable example public class Application extends AbstractAnnota……

10-30 DETAIL
Why is my Spring @Autowired field null?- Stack Overflow

Why is my Spring @Autowired field null?- Stack Overflow

Question Note: This is intended to be a canonical answer for a common problem. I have a Spring @Service class (MileageFeeCalculator) that has an @Autowired field (rateService), bu……

10-30 DETAIL