add:es日志,接入未测试

todo:添加日志删除按钮及日志条数显示
This commit is contained in:
zhangzhiqiang
2023-02-28 10:46:09 +08:00
parent 12578868f8
commit ba2e33c41e
23 changed files with 1065 additions and 22 deletions

View File

@@ -15,6 +15,22 @@ erp:
#配置数据源
spring:
data:
elasticsearch:
repositories:
enabled: true
client:
reactive:
#endpoints: 172.31.185.110:9200,172.31.154.9:9200 #内网
endpoints: 47.96.133.178:8200 #外网
# endpoints: http://10.1.3.90:9200 #外网
elasticsearch:
rest:
#uris: 172.31.185.110:9200,172.31.154.9:9200 #内网
uris: 47.96.133.178:8200 #外网
# uris: http://10.1.3.90:9200 #外网
username: elastic
password: 123456
datasource:
druid:
db-type: com.alibaba.druid.pool.DruidDataSource
@@ -58,16 +74,8 @@ spring:
enabled: true
url-pattern: /druid/*
reset-enable: false
filter:
stat:
enabled: true
# 记录慢SQL
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
filters:
DruidFilter,stat
redis:
#数据库索引
database: 2
@@ -158,4 +166,6 @@ logging:
file:
path: C:\log\wms
config: classpath:logback-spring.xml
es:
index: whxr_log

View File

@@ -2,7 +2,7 @@ spring:
freemarker:
check-template-location: false
profiles:
active: prod
active: dev
jackson:
time-zone: GMT+8
data: