![](/img/trans.png)
[英]Deploying Java Spring Boot Application to Azure Web App Linux
[英]Migrate java web app to spring boot?
我正在考慮修改現有的Java Web應用程序(帶有web.xml和applicationContext.xml文件以及Spring 2.5)以使用Spring Boot。 這個過程的含義是什么? 我知道我將需要創建一個@Configuration文件來聲明所有bean(以消除applicationContext.xml文件),但是我希望獲得一些更多的見解。 任何建議表示贊賞!
遷移將需要幾個步驟。 他們之中有一些是:-
您必須包括所有必需的依賴項。 一些依賴項是:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
您可能還會有一些其他依賴項,例如Spring Security。 如果您的應用程序使用Spring Security,則必須為其提供Java配置。 http://www.baeldung.com/spring-boot-security-autoconfiguration
https://spring.io/blog/2014/01/30/migrating-from-spring-framework-3-2-to-4-0-1
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.