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/static
src/main/resources/templates src/main/resources/public
src/test/ src/test/
target target
.settings .settings

View File

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

View File

@ -27,8 +27,6 @@ mybatis.configuration.map-underscore-to-camel-case=true
logging.file.path=/opt/metersphere/logs/${spring.application.name} logging.file.path=/opt/metersphere/logs/${spring.application.name}
# view # view
spring.mvc.throw-exception-if-no-handler-found=true 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 # flyway enable
spring.flyway.enabled=true spring.flyway.enabled=true
spring.flyway.baseline-on-migrate=true spring.flyway.baseline-on-migrate=true