Commit f0f36ab6 by huluobin

update config

parent e71c16ec
...@@ -140,6 +140,18 @@ ...@@ -140,6 +140,18 @@
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--undertow servlet 容器-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency> </dependency>
<!--mp 增加Mybatis--> <!--mp 增加Mybatis-->
......
...@@ -67,3 +67,9 @@ server: ...@@ -67,3 +67,9 @@ server:
servlet: servlet:
context-path: /purchase/other context-path: /purchase/other
undertow:
direct-buffers: true
buffer-size: 1024
threads:
worker: 500
io: 6
...@@ -12,6 +12,7 @@ spring: ...@@ -12,6 +12,7 @@ spring:
max-lifetime: 30000 max-lifetime: 30000
connection-test-query: 'select 1' connection-test-query: 'select 1'
thymeleaf: thymeleaf:
prefix: classpath:/templates/ prefix: classpath:/templates/
suffix: .html suffix: .html
...@@ -74,3 +75,9 @@ server: ...@@ -74,3 +75,9 @@ server:
servlet: servlet:
context-path: /purchase/other context-path: /purchase/other
undertow:
direct-buffers: true
buffer-size: 1024
threads:
worker: 500
io: 6
...@@ -72,3 +72,9 @@ server: ...@@ -72,3 +72,9 @@ server:
servlet: servlet:
context-path: /purchase/other context-path: /purchase/other
undertow:
direct-buffers: true
buffer-size: 1024
threads:
worker: 500
io: 6
...@@ -9,4 +9,4 @@ mvn clean package -U -Dmaven.test.skip=true -Dmaven.compile.fork=true ...@@ -9,4 +9,4 @@ mvn clean package -U -Dmaven.test.skip=true -Dmaven.compile.fork=true
# shellcheck disable=SC2009 # shellcheck disable=SC2009
ps -ef | grep cost-core | grep -v grep | grep prod | awk '{print $2}' | xargs kill -9 ps -ef | grep cost-core | grep -v grep | grep prod | awk '{print $2}' | xargs kill -9
# 运行 # 运行
nohup java -Xms512m -Xmx1024m -Xss1M -jar -Dspring.profiles.active=prod /home/ubuntu/data/other/dc-cost-system/bailuntec-cost-core/target/bailuntec-cost-core-1.0-SNAPSHOT.jar & nohup java -Xms512m -Xmx1024m -jar -Dspring.profiles.active=prod /home/ubuntu/data/other/dc-cost-system/bailuntec-cost-core/target/bailuntec-cost-core-1.0-SNAPSHOT.jar &
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment