From 48aff7cf37a903ff7ad32261c71c6df5687df28b Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <773861846@qq.com> Date: Tue, 19 Jan 2021 19:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=A4=B4=E5=83=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.yml | 2 +- .../src/main/resources/application-prod.yml | 3 + .../src/main/resources/application.yml | 3 - .../main/resources/templates/user/setup.html | 62 ++++++++++++++++++- 4 files changed, 65 insertions(+), 5 deletions(-) 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 @@
+