Parcourir la source

更新路径

master
牧羊人 il y a 4 ans
Parent
révision
99817f3f0d
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +1
    -1
      src/main/java/com/taauav/common/config/WebMvcConfig.java
  2. +1
    -1
      src/main/resources/config/application-dev.yml

+ 1
- 1
src/main/java/com/taauav/common/config/WebMvcConfig.java Voir le fichier

.addResourceLocations("classpath:/META-INF/resources/"); .addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**") registry.addResourceHandler("/webjars/**")
.addResourceLocations("classpath:/META-INF/resources/webjars/"); .addResourceLocations("classpath:/META-INF/resources/webjars/");
registry.addResourceHandler(staticAccessPath).addResourceLocations("file:"+uploadFolder);
registry.addResourceHandler(staticAccessPath).addResourceLocations("file:///"+uploadFolder);
super.addResourceHandlers(registry); super.addResourceHandlers(registry);
} }
} }

+ 1
- 1
src/main/resources/config/application-dev.yml Voir le fichier

port: 8010 port: 8010
UPLOAD_URL: http://upload.manufacturecloud.com/ UPLOAD_URL: http://upload.manufacturecloud.com/
AVATAR_URL: /data/java/lishui/public/upload/ AVATAR_URL: /data/java/lishui/public/upload/
IMAGE_URL: http://img.manufacturecloud.com/
IMAGE_URL: http://images.lishui.com/
servlet: servlet:
context-path: /api context-path: /api
spring: spring:

Chargement…
Annuler
Enregistrer