eureka
tanghc 4 years ago
parent f174c68b53
commit 950eacc538
  1. 5
      sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/configuration/SpringmvcConfiguration.java

@ -26,10 +26,13 @@ public class SpringmvcConfiguration implements WebMvcConfigurer {
public static final String METADATA_SERVER_CONTEXT_PATH = "server.servlet.context-path";
public SpringmvcConfiguration() {
System.setProperty("eureka.instance.metadata-map.server.startup-time", String.valueOf(System.currentTimeMillis()));
ServiceConfig.getInstance().getI18nModules().add("i18n/isp/bizerror");
}
static {
System.setProperty("eureka.instance.metadata-map.server.startup-time", String.valueOf(System.currentTimeMillis()));
}
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
// 支持swagger-bootstrap-ui首页

Loading…
Cancel
Save