How Buffalo 2.0 integrates spring
Editor to share with you how Buffalo 2.0 integrates spring. I hope you will get something after reading this article. Let's discuss it together.
Spring is currently the most popular lightweight container, and Buffalo supports it. Any configured bean in Spring can be exposed as a buffalo service through simple configuration. The following is a brief introduction to the configuration of Buffalo2.0 integrated Spring.
1. Web.xml configuration:
Buffalo Web Remoting Demostration Application
Display-name >
ContextConfigLocationparam-name >
/ WEB-INF/applicationContext.xmlparam-value >
Context-param >
Bfappservlet-name >
Net.buffalo.web.servlet.ApplicationServlet
Servlet-class >
Servlet >
Contextservlet-name >
Org.springframework.web.context.ContextLoaderServlet
Servlet-class >
1load-on-startup >
Servlet >
Bfappservlet-name >
/ bfapp/*url-pattern >
Servlet-mapping >
2. ApplicationContext.xml configuration of Spring:
Bean >
Entry >