您好,登錄后才能下訂單哦!
@SpringBootApplicationpublic?class?Application?extends?SpringBootServletInitializer?{????@Override ????//www.1b23.com ????protected?SpringApplicationBuilder?configure(SpringApplicationBuilder?application)?{????????return?application.sources(Application.class); ????}????public?static?void?main(String[]?args)?{ ????????SpringApplication.run(Application.class,?args); ????} }
<project?xmlns="http://maven.apache.org/POM/4.0.0"?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xsi:schemaLocation="http://maven.apache.org/POM/4.0.0?http://maven.apache.org/xsd/maven-4.0.0.xsd"> ??<modelVersion>4.0.0</modelVersion> ??<groupId>com.cf</groupId> ??<artifactId>packagea</artifactId> ??<version>0.0.1-SNAPSHOT</version> ?? ??<!--?打包方式?--> ??<packaging>war</packaging> ?? ????<parent> ????????<groupId>org.springframework.boot</groupId> ????????<artifactId>spring-boot-starter-parent</artifactId> ????????<version>2.1.9.RELEASE</version> ????????<relativePath/>?<!--?lookup?parent?from?repository?--> ????</parent> ???? ????<dependencies> ????????<dependency> ????????????<groupId>org.springframework.boot</groupId> ????????????<artifactId>spring-boot-starter-web</artifactId> ????????</dependency> ???????? ????????<!--?嵌入式tomcat相關jar將被放入到WEB-INF\lib-provided下?--> ????????<dependency> ????????????<groupId>org.springframework.boot</groupId> ????????????<artifactId>spring-boot-starter-tomcat</artifactId> ????????????<scope>provided</scope> ????????</dependency> ????</dependencies> ???? ????<build> ????????<plugins> ????????????<!--?打包插件?--> ????????????<plugin> ????????????????<groupId>org.springframework.boot</groupId> ????????????????<artifactId>spring-boot-maven-plugin</artifactId> ????????????</plugin> ????????</plugins> ????</build></project>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。