fix: 修复版本升级后的页面访问问题

This commit is contained in:
Captain.B 2021-05-31 17:06:24 +08:00 committed by 刘瑞斌
parent 8a87431476
commit 7007e4a73c
3 changed files with 3 additions and 5 deletions

2
backend/.gitignore vendored
View File

@ -25,7 +25,7 @@ yarn-error.log*
src/main/resources/static
src/main/resources/templates
src/main/resources/public
src/test/
target
.settings

View File

@ -488,7 +488,7 @@
<followSymlinks>false</followSymlinks>
</fileset>
<fileset>
<directory>src/main/resources/templates</directory>
<directory>src/main/resources/public</directory>
<includes>
<include>**</include>
</includes>
@ -537,7 +537,7 @@
<exclude name="*.html"/>
</fileset>
</move>
<move todir="src/main/resources/templates">
<move todir="src/main/resources/public">
<fileset dir="../frontend/dist">
<include name="*.html"/>
</fileset>

View File

@ -27,8 +27,6 @@ mybatis.configuration.map-underscore-to-camel-case=true
logging.file.path=/opt/metersphere/logs/${spring.application.name}
# view
spring.mvc.throw-exception-if-no-handler-found=true
spring.web.resources.add-mappings=false
spring.resources.static-locations=classpath:/templates/,classpath:/static/
# flyway enable
spring.flyway.enabled=true
spring.flyway.baseline-on-migrate=true