java后台返回前端页面的提示消息的中英日三国语配置
步骤:
- 配置文件:application.yml
spring:
messages:
encoding: UTF-8
basename: i18n/messages
server:
port: 8082
session-timeout: 30
tomcat.max-threads: 0
tomcat.uri-encoding: UTF-8
#DB接続
spring:
datasource:
druid:
#qianyong数据库信息
url: jdbc:sqlserver://localhost:1433;databasename=thermometer
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
username: xx
password: xxxx
initialSize: 5
max-active: 50
min-idle: 5
max-wait: 60000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
validation-query: SELECT 1
validation-query-timeout: 60000
test-on-borrow: false
test-on-return: false
test-while-idle: true
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 100000
#redisキャッシュ
redis:
host: 127.0.0.1
port: 6379
password:
timeout: 100000000ms
database: 0
lettuce:
pool:
max