Get the App
SLTechnology News&Howtos  ›  Development  › 

How Buffalo 2.0 integrates spring

Shulou Source: shulou.com Published: 2022-06-02 05:29:13 10月02日 Update

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 >

Tags: Configuration integration articles no can be passed done containers developers documents more knowledge industry information information channels lightweight lightweight pages channels development hosting Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi macOS Shulou Technology Docker vpn