diff --git a/novel-front/src/main/resources/application-dev.yml b/novel-front/src/main/resources/application-dev.yml index e85a051..dbae974 100644 --- a/novel-front/src/main/resources/application-dev.yml +++ b/novel-front/src/main/resources/application-dev.yml @@ -7,4 +7,4 @@ pic: save: type: 1 #图片保存方式, 1不保存,使用爬取的网络图片 ,2保存在自己的存储介质 storage: local #存储介质,local:本地,OSS:阿里云对象存储,fastDfs:分布式文件系统 - path: /var/pic #图片保存路径 \ No newline at end of file + path: /Users/xiongxiaoyang/java #图片保存路径 \ No newline at end of file diff --git a/novel-front/src/main/resources/application-prod.yml b/novel-front/src/main/resources/application-prod.yml index b853e40..5ad5404 100644 --- a/novel-front/src/main/resources/application-prod.yml +++ b/novel-front/src/main/resources/application-prod.yml @@ -2,6 +2,9 @@ spring: profiles: include: [common-prod] + #静态文件路径配置 + resources: + static-locations: file:${user.dir}/templates/${templates.name}/static/ #thymeleaf模版路径配置 thymeleaf: prefix: file:${user.dir}/templates/${templates.name}/html/ diff --git a/novel-front/src/main/resources/application.yml b/novel-front/src/main/resources/application.yml index 0cf5fc4..de2471b 100644 --- a/novel-front/src/main/resources/application.yml +++ b/novel-front/src/main/resources/application.yml @@ -26,9 +26,6 @@ spring: uris: http://192.168.0.105:9200 - #静态文件路径配置 - resources: - static-locations: file:${user.dir}/templates/${templates.name}/static/ redisson: singleServerConfig: diff --git a/novel-front/src/main/resources/templates/user/setup.html b/novel-front/src/main/resources/templates/user/setup.html index bc4fec5..38c5af1 100644 --- a/novel-front/src/main/resources/templates/user/setup.html +++ b/novel-front/src/main/resources/templates/user/setup.html @@ -25,7 +25,14 @@
+