druid 用shrio的权限控制托管

master
星期八 6 years ago
parent 9ddfe1d82f
commit d4f6acd14e
  1. 1
      src/main/resources/spring/spring-shiro.xml
  2. 3
      src/main/webapp/WEB-INF/web.xml

@ -112,6 +112,7 @@
/cms/login/** = anon /cms/login/** = anon
/cms/index = authc /cms/index = authc
/cms/** = authc /cms/** = authc
/druid/** = perms["/druid:SELECT"]
</value> </value>
</property> </property>
</bean> </bean>

@ -87,7 +87,7 @@
<param-value>true</param-value> <param-value>true</param-value>
</init-param> </init-param>
<!-- 用户名--> <!-- 用户名-->
<init-param> <!-- <init-param>
<param-name>loginUsername</param-name> <param-name>loginUsername</param-name>
<param-value>admin</param-value> <param-value>admin</param-value>
</init-param> </init-param>
@ -95,6 +95,7 @@
<param-name>loginPassword</param-name> <param-name>loginPassword</param-name>
<param-value>admin</param-value> <param-value>admin</param-value>
</init-param> </init-param>
-->
</servlet> </servlet>
<servlet-mapping> <servlet-mapping>
<servlet-name>DruidStatView</servlet-name> <servlet-name>DruidStatView</servlet-name>

Loading…
Cancel
Save