一.端口,项目上下文根
server:
port: 8080
servlet:
context-path: /levenx
二.关系型数据库
1.mysql
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/levenx?useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: root
password: password
jpa:
hibernate:
ddl-auto: update
show-sql: true
三.nosql数据库
1.redis
spring:
redis:
database: 0
host: localhost
port: 6379
password:
jedis:
pool:
max-active: 8
max-wait: -1
max-idle: 8
min-idle: 0
timeout: 0
四.levenx工具包
levenx:
is-build: true
entity:
- name: goodSound
field:
- name: String
五.JavaMail
#mail
mail:
host: smtp.163.com
username: levenx2018@163.com
password: xxxxxxx(163邮箱的授权码)
properties:
mail:
smtp:
auth: true
陆续积累记录。