diff --git a/backend/.gitignore b/backend/.gitignore
index a5a2b0c056..c8d5907dfc 100644
--- a/backend/.gitignore
+++ b/backend/.gitignore
@@ -25,7 +25,7 @@ yarn-error.log*
src/main/resources/static
-src/main/resources/templates
+src/main/resources/public
src/test/
target
.settings
diff --git a/backend/pom.xml b/backend/pom.xml
index 624a7cd13a..05342f1bad 100644
--- a/backend/pom.xml
+++ b/backend/pom.xml
@@ -488,7 +488,7 @@
false
- src/main/resources/templates
+ src/main/resources/public
**
@@ -537,7 +537,7 @@
-
+
diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties
index 9c91f80616..8db6c07c47 100644
--- a/backend/src/main/resources/application.properties
+++ b/backend/src/main/resources/application.properties
@@ -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