shiro dialect
This commit is contained in:
parent
c27167a3ba
commit
da8e7b101d
|
@ -40,7 +40,6 @@
|
||||||
<artifactId>spring-boot-starter</artifactId>
|
<artifactId>spring-boot-starter</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||||||
|
@ -56,7 +55,6 @@
|
||||||
<artifactId>thymeleaf-extras-shiro</artifactId>
|
<artifactId>thymeleaf-extras-shiro</artifactId>
|
||||||
<version>2.0.0</version>
|
<version>2.0.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
-->
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.fit2cloud.metersphere.config;
|
package com.fit2cloud.metersphere.config;
|
||||||
|
|
||||||
|
import at.pollux.thymeleaf.shiro.dialect.ShiroDialect;
|
||||||
import com.fit2cloud.metersphere.security.LoginFilter;
|
import com.fit2cloud.metersphere.security.LoginFilter;
|
||||||
import com.fit2cloud.metersphere.security.ShiroDBRealm;
|
import com.fit2cloud.metersphere.security.ShiroDBRealm;
|
||||||
import org.apache.shiro.cache.MemoryConstrainedCacheManager;
|
import org.apache.shiro.cache.MemoryConstrainedCacheManager;
|
||||||
|
@ -99,6 +100,11 @@ public class ShiroConfig {
|
||||||
return daap;
|
return daap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Bean(name = "shiroDialect")
|
||||||
|
public ShiroDialect shiroDialect() {
|
||||||
|
return new ShiroDialect();
|
||||||
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public AuthorizationAttributeSourceAdvisor getAuthorizationAttributeSourceAdvisor(DefaultWebSecurityManager sessionManager) {
|
public AuthorizationAttributeSourceAdvisor getAuthorizationAttributeSourceAdvisor(DefaultWebSecurityManager sessionManager) {
|
||||||
AuthorizationAttributeSourceAdvisor aasa = new AuthorizationAttributeSourceAdvisor();
|
AuthorizationAttributeSourceAdvisor aasa = new AuthorizationAttributeSourceAdvisor();
|
||||||
|
|
Loading…
Reference in New Issue