shiro uses ehcache to cache permission data

Ehcache is a special cache plugin that can cache Java objects and improve system performance

Step 1: Introduce the dependency of ehcache in the pom.xml file

 

Step 2: Provide the configuration file of ehcache in the project

 

Step 3: Configure the cache manager object in the spring configuration file and inject it into the security manager object

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325824350&siteId=291194637