Initial commit: 课程任务进度管理系统
This commit is contained in:
21
src/main/resources/application.properties
Normal file
21
src/main/resources/application.properties
Normal file
@ -0,0 +1,21 @@
|
||||
# 数据库配置
|
||||
spring.datasource.url=jdbc:mysql://172.16.215.132:3306/fenshenzhike?useSSL=false&serverTimezone=UTC
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=123
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
|
||||
server.port=1218
|
||||
|
||||
# JPA配置
|
||||
spring.jpa.show-sql=true
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
|
||||
spring.jpa.properties.hibernate.format_sql=true
|
||||
|
||||
# JWT配置
|
||||
jwt.secret=404E635266556A586E3272357538782F413F4428472B4B6250645367566B5970
|
||||
jwt.expiration=604800000
|
||||
|
||||
# 日志配置
|
||||
logging.level.org.springframework.security=DEBUG
|
||||
logging.level.com.huertian.jinduguanli=DEBUG
|
48
src/main/resources/application.yml
Normal file
48
src/main/resources/application.yml
Normal file
@ -0,0 +1,48 @@
|
||||
server:
|
||||
port: 1218
|
||||
|
||||
spring:
|
||||
main:
|
||||
banner-mode: console
|
||||
datasource:
|
||||
url: jdbc:mysql://172.16.215.132:3306/fenshenzhike?useSSL=false&serverTimezone=UTC
|
||||
username: root
|
||||
password: 123
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
jpa:
|
||||
show-sql: true
|
||||
hibernate:
|
||||
ddl-auto: update
|
||||
properties:
|
||||
hibernate:
|
||||
format_sql: true
|
||||
use_sql_comments: true
|
||||
redis:
|
||||
host: 172.16.215.132
|
||||
port: 6379
|
||||
database: 0
|
||||
timeout: 10000
|
||||
password: # 如果Redis设置了密码,需要在这里添加
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 8
|
||||
max-wait: -1ms
|
||||
max-idle: 8
|
||||
min-idle: 0
|
||||
shutdown-timeout: 100ms
|
||||
client-name: jinduguanli
|
||||
connect-timeout: 5000
|
||||
socket-timeout: 5000
|
||||
client-type: lettuce
|
||||
|
||||
jwt:
|
||||
secret: 404E635266556A586E3272357538782F413F4428472B4B6250645367566B5970
|
||||
expiration: 86400000 # 24小时
|
||||
|
||||
logging:
|
||||
level:
|
||||
org.hibernate.SQL: DEBUG
|
||||
org.hibernate.type.descriptor.sql.BasicBinder: TRACE
|
||||
com.huertian.jinduguanli: DEBUG
|
||||
org.springframework.data.redis: DEBUG
|
||||
io.lettuce.core: DEBUG
|
8
src/main/resources/banner.txt
Normal file
8
src/main/resources/banner.txt
Normal file
@ -0,0 +1,8 @@
|
||||
_________________
|
||||
< Hi, 我是牛哥。。 >
|
||||
-----------------
|
||||
\ ^__^
|
||||
\ (oo)\_______
|
||||
(__)\ )\/\
|
||||
||----w |
|
||||
|| ||
|
Reference in New Issue
Block a user