按照配置并pom.xml中配置了shiro
<dependency>
<groupId>org.nutz</groupId>
<artifactId>nutz-integration-shiro</artifactId>
<version>${nutz.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-all</artifactId>
<version>${shiro.version}</version>
</dependency>
<listener>
<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
</listener>
<filter>
<filter-name>ShiroFilter</filter-name>
<filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ShiroFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
打印结果没有shiro相关日志
Connected to server
[2018-01-14 10:15:21,768] Artifact nutzStudy:war exploded: Artifact is being deployed, please wait...
14-Jan-2018 22:15:23.522 信息 [RMI TCP Connection(4)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO ] 22:15:24.400 org.nutz.mvc.NutFilter._init(NutFilter.java:85) - NutFilter[nutz] starting ...
[DEBUG] 22:15:24.419 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=4 time use 4ms
[DEBUG] 22:15:24.443 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=31 time use 23ms
[DEBUG] 22:15:24.467 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:61) - Loading by class org.nutz.mvc.impl.NutLoading
[INFO ] 22:15:24.471 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nutz Version : 1.r.63-SNAPSHOT
[INFO ] 22:15:24.471 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nutz.Mvc[nutz] is initializing ..