release_1.0.0
liu 8 months ago
parent a0e1d6ad41
commit 41bd894b1e

@ -27,6 +27,13 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.supervision</groupId>
<artifactId>know_sub_common</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>

@ -1 +0,0 @@
spring.application.name=know_sub_business

@ -0,0 +1,74 @@
#?????
server:
port: 9201
servlet:
context-path: /know-sub
undertow:
# HTTP post???????????-1????????????
max-http-post-size: -1
# ????????buffer,??buffer?????????IO??,????netty???????
# ??buffer?????,???????????
buffer-size: 512
# ?????????
direct-buffers: true
spring:
main:
allow-bean-definition-overriding: true
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
##?????
datasource:
type: com.alibaba.druid.pool.DruidDataSource
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.10.137:3306/know_sub?useUnicode=true&characterEncoding=utf-8&useSSL=true&nullCatalogMeansCurrent=true&serverTimezone=GMT%2B8
username: root
password: '123456'
initial-size: 5 # ?????
min-idle: 10 # ?????
max-active: 20 # ?????
max-wait: 60000 # ????????????
min-evictable-idle-time-millis: 300000 # ????????????????????
time-between-eviction-runs-millis: 60000 # ????????????????????????
filters: stat,wall # ???????stat-?????log4j-???wall-??????SQL?????????????sql????
validation-query: SELECT 1 # ????????? SQL???????????????
test-on-borrow: true # ???????validationQuery???????????true?????????
test-on-return: true # ???????validationQuery???????????false?????????
test-while-idle: true # ?????????????timeBetweenEvictionRunsMillis???validationQuery???????????false???????????
stat-view-servlet:
enabled: true # ???? StatViewServlet
loginUsername: admin
loginPassword: 123456
filter:
stat:
enabled: true # ???? FilterStat???true
log-slow-sql: true # ???? ?SQL ?????false
slow-sql-millis: 5000 # ? SQL ?????? 3000??????
merge-sql: false # ???????????????false
mybatis-plus:
mapper-locations: classpath*:mapper/**/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# springdoc-openapi????
springdoc:
# ???false??????true ??GET???,???????????????
default-flat-param-object: true
swagger-ui:
path: /swagger-ui.html
tags-sorter: alpha
operations-sorter: alpha
api-docs:
path: /v3/api-docs
group-configs:
- group: 'default'
paths-to-match: '/**'
packages-to-scan: com.supervision
# knife4j???????????????
knife4j:
enable: true
setting:
language: zh_cn

@ -6,15 +6,16 @@
<groupId>com.supervision</groupId>
<artifactId>know_sub</artifactId>
<version>1.0.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<artifactId>know_sub_common</artifactId>
<version>1.0.0</version>
<name>know_sub_common</name>
<packaging>jar</packaging>
<properties>
<java.version>17</java.version>
</properties>
<dependencies>
<!--移除Tomcat依赖-->
<dependency>
@ -28,6 +29,7 @@
</exclusions>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
@ -85,10 +87,6 @@
<artifactId>hutool-all</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
</dependencies>

Loading…
Cancel
Save