2020-06-13 10:02
shiro配置,标记一下
UndertowServer.create(ServerConfig.class).configWeb(builder -> {
builder.addListener("org.apache.shiro.web.env.EnvironmentLoaderListener");
builder.addFilter("shiroFilter", "org.apache.shiro.web.servlet.ShiroFilter");
builder.addFilterUrlMapping("shiroFilter", "/*");
}).start();