From 017727b2eb132e989345beb1eca9c4046efa8b79 Mon Sep 17 00:00:00 2001 From: HuangXin Date: Wed, 12 Aug 2020 14:16:55 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E6=9B=B4=E6=96=B0pom?= =?UTF-8?q?=E8=84=9A=E6=89=8B=E6=9E=B6=EF=BC=8C=E7=A7=BB=E9=99=A4tomcat?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E7=94=A8undertow=202.=20=E7=A7=BB=E9=99=A4Ma?= =?UTF-8?q?pper=E5=90=AF=E5=8A=A8=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 60 ++++++------------- src/main/java/com/dispose/NoWarnMapper.java | 13 ++++ .../com/dispose/PhoenixBootApplication.java | 2 +- 3 files changed, 33 insertions(+), 42 deletions(-) create mode 100644 src/main/java/com/dispose/NoWarnMapper.java diff --git a/pom.xml b/pom.xml index bd6a0be8..52115273 100644 --- a/pom.xml +++ b/pom.xml @@ -4,9 +4,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.cmcc.hy - phoenix-boot - 0.0.4 + org.springframework.boot + spring-boot-starter-parent + 2.2.9.RELEASE + + + com.dispose @@ -15,6 +18,9 @@ phoenix_ddos_handle Demo project for Spring Boot + 1.8 + Greenwich.SR3 + 2.1.3.Final UTF-8 @@ -38,18 +44,6 @@ org.springframework.boot spring-boot-starter-undertow - - org.apache.tomcat.embed - tomcat-embed-core - - - org.apache.tomcat - tomcat-annotations-api - - - 9.0.31 - - org.springframework.boot spring-boot-starter-aop @@ -68,15 +62,17 @@ io.springfox springfox-swagger2 + 3.0.0 io.springfox springfox-swagger-ui + 3.0.0 com.alibaba fastjson - 1.2.58 + 1.2.73 net.sf.json-lib @@ -89,12 +85,12 @@ mysql mysql-connector-java - 8.0.21 org.mybatis.spring.boot mybatis-spring-boot-starter + 2.1.0 org.apache.commons @@ -117,15 +113,13 @@ commons-io commons-io - - - oro - oro + 2.6 com.google.guava guava + 29.0-jre @@ -135,46 +129,30 @@ cn.hutool hutool-all + 5.3.10 tk.mybatis mapper-spring-boot-starter + 2.1.0 com.github.pagehelper pagehelper-spring-boot-starter + 1.2.9 com.cmcc enc.dec + 1.3.1 commons-codec commons-codec - - redis.clients - jedis - - - org.objenesis - objenesis - - - io.protostuff - protostuff-core - - - io.protostuff - protostuff-runtime - - - com.google.protobuf - protobuf-java - org.apache.commons commons-pool2 diff --git a/src/main/java/com/dispose/NoWarnMapper.java b/src/main/java/com/dispose/NoWarnMapper.java new file mode 100644 index 00000000..29ddea0d --- /dev/null +++ b/src/main/java/com/dispose/NoWarnMapper.java @@ -0,0 +1,13 @@ +package com.dispose; + +import org.apache.ibatis.annotations.Mapper; + +/** + * The interface No warn mapper. + * 该接口用来去除 Spring boot启动时的mapper警告消息 + * + * @author + */ +@Mapper +public interface NoWarnMapper { +} diff --git a/src/main/java/com/dispose/PhoenixBootApplication.java b/src/main/java/com/dispose/PhoenixBootApplication.java index 1178979e..0a7620f0 100644 --- a/src/main/java/com/dispose/PhoenixBootApplication.java +++ b/src/main/java/com/dispose/PhoenixBootApplication.java @@ -1,13 +1,13 @@ package com.dispose; import lombok.extern.slf4j.Slf4j; +import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.transaction.annotation.EnableTransactionManagement; -import tk.mybatis.spring.annotation.MapperScan; /** * The type Phoenix boot application.