소스 검색

国际化

yubin 3 주 전
부모
커밋
ae14f07c9a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      mall-service/src/main/resources/bootstrap.properties

+ 4 - 0
mall-service/src/main/resources/bootstrap.properties

@@ -66,3 +66,7 @@ dubbo.registry.check=false
 #management.endpoints.web.path-mapping.shutdown=/shutThisBoot
 #management.server.address=127.0.0.1
 
+
+spring.messages.basename=i18n/messages,i18n/messages_zh_CN
+spring.messages.encoding=UTF-8
+spring.messages.cache-duration=0