diff --git a/springboot/pom.xml b/springboot/pom.xml
index 9927bce..92cf2b2 100644
--- a/springboot/pom.xml
+++ b/springboot/pom.xml
@@ -1,73 +1,85 @@
-
-
- 4.0.0
-
- org.springframework.boot
- spring-boot-starter-parent
- 2.1.3.RELEASE
-
-
- com.sincre
- springboot
- 0.0.1-SNAPSHOT
- springboot
- Demo project for Spring Boot
-
-
- 1.8
-
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-starter-jdbc
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
-
- io.springfox
- springfox-swagger-ui
- 2.9.2
-
-
-
- io.springfox
- springfox-swagger2
- 2.9.2
-
-
-
- com.microsoft.sqlserver
- mssql-jdbc
- runtime
-
-
-
- org.mybatis.spring.boot
- mybatis-spring-boot-starter
- 2.0.0
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
-
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.1.3.RELEASE
+
+
+ com.sincre
+ springboot
+ 0.0.1-SNAPSHOT
+ war
+ springboot
+ Demo project for Spring Boot
+
+
+ 1.8
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-jdbc
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ javax.servlet
+ javax.servlet-api
+ 4.0.1
+
+
+
+ io.springfox
+ springfox-swagger-ui
+ 2.9.2
+
+
+
+ io.springfox
+ springfox-swagger2
+ 2.9.2
+
+
+
+ com.microsoft.sqlserver
+ mssql-jdbc
+ runtime
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ 2.0.0
+
+
+
+
+ springboot-sincere
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git a/springboot/src/main/java/com/sincre/springboot/SpringbootApplication.java b/springboot/src/main/java/com/sincre/springboot/SpringbootApplication.java
index 1617a6d..52786cb 100644
--- a/springboot/src/main/java/com/sincre/springboot/SpringbootApplication.java
+++ b/springboot/src/main/java/com/sincre/springboot/SpringbootApplication.java
@@ -1,35 +1,42 @@
-package com.sincre.springboot;
-
-import org.apache.ibatis.annotations.Mapper;
-import org.mybatis.spring.annotation.MapperScan;
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-import javax.swing.*;
-import java.awt.*;
-
-@MapperScan("com.sincre.springboot.mapper")
-@SpringBootApplication
-public class SpringbootApplication {
-
- public static void main(String[] args) {
-
- SpringApplication.run(SpringbootApplication.class, args);
- System.out.println("classpath:" + new SpringbootApplication().getClass().getResource(""));
-
-// new SpringbootApplication().initFrame();
- }
-
- private void initFrame() {
- JFrame jFrame = new JFrame();
- //设置窗口是否可视
- jFrame.setVisible(true);
-//设置窗口的大小是否可以调节
- jFrame.setResizable(false);
-//设置窗口大小和x,y位置
- jFrame.setBounds(100, 100, 600, 800);
-//设置窗口退出则程序退出
- jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- }
-
-}
+package com.sincre.springboot;
+
+import org.apache.ibatis.annotations.Mapper;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.builder.SpringApplicationBuilder;
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+
+import javax.swing.*;
+import java.awt.*;
+
+@MapperScan("com.sincre.springboot.mapper")
+@SpringBootApplication
+public class SpringbootApplication extends SpringBootServletInitializer {
+
+ public static void main(String[] args) {
+
+ SpringApplication.run(SpringbootApplication.class, args);
+ System.out.println("classpath:" + new SpringbootApplication().getClass().getResource(""));
+
+// new SpringbootApplication().initFrame();
+ }
+
+ @Override
+ protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
+ return builder.sources(SpringbootApplication.class);
+ }
+
+ private void initFrame() {
+ JFrame jFrame = new JFrame();
+ //设置窗口是否可视
+ jFrame.setVisible(true);
+//设置窗口的大小是否可以调节
+ jFrame.setResizable(false);
+//设置窗口大小和x,y位置
+ jFrame.setBounds(100, 100, 600, 800);
+//设置窗口退出则程序退出
+ jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+ }
+
+}
--
libgit2 0.21.0