✨ Introducing new features. #1187 pigx-register 使用 undertow ,去除 tomcat 统一容器

This commit is contained in:
冷冷 committed 2020-05-12 15:38:46 +08:00
1 parent 98e2dea7c6
commit c1b89f1b21
2 files changed
+27 -13

No files matched your search

+24 -11
View File
@@ -24,19 +24,9 @@
<artifactId>pigx-register</artifactId>
<packaging>jar</packaging>
<name>pigx-register</name>
<description>nacos 注册配置中</description>
<description>nacos 注册配置中心</description>
<dependencies>
<dependency>
<groupId>com.pig4cloud.nacos</groupId>
<artifactId>nacos-config</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<version>7.0.59</version>
</dependency>
<dependency>
<groupId>com.pig4cloud.nacos</groupId>
<artifactId>nacos-naming</artifactId>
@@ -49,6 +39,29 @@
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>com.pig4cloud.nacos</groupId>
<artifactId>nacos-config</artifactId>
<version>1.2.1</version>
<exclusions>
<!--排除 tomcat-->
<exclusion>
<artifactId>spring-boot-starter-tomcat</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
<exclusion>
<artifactId>tomcat-embed-core</artifactId>
<groupId>org.apache.tomcat.embed</groupId>
</exclusion>
</exclusions>
</dependency>
<!--undertow容器-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
@@ -1,7 +1,8 @@
server:
port: 8848
tomcat:
basedir: logs
undertow:
accesslog:
enabled: false
db:
num: 1