Merge branch 'develop'

1.x
tanghc 6 years ago
commit 522f36fe95
  1. 7
      sop-example/sop-easyopen/src/main/java/com/gitee/easyopen/server/config/SopConfig.java
  2. 2
      sop-example/sop-easyopen/src/main/resources/application-dev.yml

@ -4,6 +4,7 @@ import com.gitee.sop.servercommon.configuration.EasyopenDocSupportController;
import com.gitee.sop.servercommon.configuration.EasyopenServiceConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
/**
* @author tanghc
@ -18,4 +19,10 @@ public class SopConfig extends EasyopenServiceConfiguration {
return "商品API";
}
}
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
//配置映射关系
registry.addResourceHandler("/opendoc/**").addResourceLocations("classpath:/META-INF/resources/opendoc/");
}
}

@ -1,8 +1,6 @@
server:
port: 2121
# 指定注册中心
eureka:
port: 1111

Loading…
Cancel
Save