页面优化

This commit is contained in:
yaoyuan2.chu
2020-11-30 00:09:38 +08:00
parent df3b826b3e
commit 1e0fcfb6e2
7 changed files with 26 additions and 33 deletions
+10 -17
View File
@@ -1,29 +1,22 @@
#h2 配置
#mysql 配置
spring:
cache:
type: ehcache
ehcache:
config: classpath:ehcache.xml
jpa:
generate-ddl: false
database: MYSQL
show-sql: true
hibernate:
ddl-auto: none
h2:
console:
path: /h2-console
enabled: true
settings:
web-allow-others: true
ddl-auto: update
datasource:
platform: h2
url: jdbc:h2:~/testjiscuss
username: sa
password:
schema: classpath:schema.sql
data: classpath:data.sql
driver-class-name: org.h2.Driver
url: jdbc:mysql://101.200.164.179:3306/jiscuss?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false
username: jiscuss
password: jiscusscyy
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
tomcat:
init-s-q-l: SET NAMES utf8mb4
druid:
min-idle: 2
initial-size: 5
@@ -34,7 +27,7 @@ spring:
filter:
stat:
enabled: true
db-type: h2
db-type: mysql
log-slow-sql: true
slow-sql-millis: 2000
# 监控过滤器