diff --git a/backend/pom.xml b/backend/pom.xml index 66cd44b0b7..2dbdacfcd8 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -40,7 +40,6 @@ spring-boot-starter - org.springframework.boot diff --git a/backend/src/main/java/com/fit2cloud/metersphere/config/ShiroConfig.java b/backend/src/main/java/com/fit2cloud/metersphere/config/ShiroConfig.java index eab301c259..8b5e4698e2 100644 --- a/backend/src/main/java/com/fit2cloud/metersphere/config/ShiroConfig.java +++ b/backend/src/main/java/com/fit2cloud/metersphere/config/ShiroConfig.java @@ -1,5 +1,6 @@ package com.fit2cloud.metersphere.config; +import at.pollux.thymeleaf.shiro.dialect.ShiroDialect; import com.fit2cloud.metersphere.security.LoginFilter; import com.fit2cloud.metersphere.security.ShiroDBRealm; import org.apache.shiro.cache.MemoryConstrainedCacheManager; @@ -99,6 +100,11 @@ public class ShiroConfig { return daap; } + @Bean(name = "shiroDialect") + public ShiroDialect shiroDialect() { + return new ShiroDialect(); + } + @Bean public AuthorizationAttributeSourceAdvisor getAuthorizationAttributeSourceAdvisor(DefaultWebSecurityManager sessionManager) { AuthorizationAttributeSourceAdvisor aasa = new AuthorizationAttributeSourceAdvisor();