NutzCN Logo
问答 nutzwk装nutzboot后,原先的Setup如何初始化
发布于 1988天前 作者 suyun 2793 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

原先的nutzwk项目装成nutzboot之后,我把原先放在Module类上的注解全部转移到了MainLauncher类上了
原先的注解

@Modules(scanPackage = true, packages = {"cn.nutzwk","cn.ikeeper"})
@Ok("json:full")
@Fail("http:500")
@IocBy(type = ComboIocProvider.class, args = {"*json", "config/ioc/", "*anno", "cn.nutzwk",
        "cn.ikeeper", "*jedis", "*tx", "*quartz", "*async", "*rabbitmq", "*wkcache","*weixin"})
@Localization(value = "locales/", defaultLocalizationKey = "zh_CN")
@Encoding(input = "UTF-8", output = "UTF-8")
@Views({BeetlViewMaker.class, PdfViewMaker.class})
@SetupBy(value = Setup.class)
@ChainBy(args = "config/chain/nutzwk-mvc-chain.json")
@SessionBy(ShiroSessionProvider.class)
public class Module {
}

转移后的注解

@Modules(packages = {"cn.nutzwk","cn.ikeeper"})
@Ok("json:full")
@Fail("http:500")
@IocBy(args = {"*json", "config/ioc/", "*anno", "cn.nutzwk",
        "cn.ikeeper", "*jedis", "*tx", "*quartz", "*async", "*rabbitmq", "*wkcache","*weixin"})
@Localization(value = "locales/", defaultLocalizationKey = "zh_CN")
@Encoding(input = "UTF-8", output = "UTF-8")
//@Views({BeetlViewMaker.class, PdfViewMaker.class})
@SetupBy(value = Setup.class)
@ChainBy(args = "config/chain/nutzwk-mvc-chain.json")
@SessionBy(ShiroSessionProvider.class)
@IocBean(create = "init", depose = "depose")
public class MainLauncher {}

就目前运行情况来看,Setup并没有执行到,这是什么原因?

39 回复

main方法怎样写的

public class MainLauncher {

    @Inject
    private Dao dao;
    @Inject
    private AppContext appContext;

    @At("/")
    @Ok("->:/platform/sys/login.html")
    public void index() {}

    public void init() {
        List<Sys_task> tasks = dao.query(Sys_task.class, Cnd.NEW());

        System.out.println("开始==============" + Json.toJson(tasks));

        System.out.println("aaaaaaaaaa---" + appContext);
    }

    public void depose() {
        System.out.println("结束");
    }

    public static void main(String[] args) throws Exception {
        new NbApp().setArgs(args).setPrintProcDoc(true).run();
    }
}

就写了一个启动

debug过?日志里面没看到Setup字样?

不好意思兽总,我resources的目录结构搞错了,等会我重新整理一下目录结构

@wendal 兽总,我把resources的目录结构调整好之后,还是不能正常使用Setup,打印的日志里面也没有出现过setup,在setup的init方法里面打的断点都没显示过被加载的样子,然后启动类上面注销了@IocBy

@Modules(packages = {"cn.nutzwk","cn.ikeeper"})
@Ok("json:full")
@Fail("http:500")
//@IocBy(args = {"*json", "ioc/", "*anno", "cn.nutzwk",
//        "cn.ikeeper", "*jedis", "*tx", "*quartz", "*async", "*rabbitmq", "*wkcache","*weixin"})
@Localization(value = "locales/", defaultLocalizationKey = "zh_CN")
@Encoding(input = "UTF-8", output = "UTF-8")
//@Views({BeetlViewMaker.class, PdfViewMaker.class})
@SetupBy(value = Setup.class)
@ChainBy(args = "config/chain/nutzwk-mvc-chain.json")
@SessionBy(ShiroSessionProvider.class)
@IocBean(create = "init", depose = "depose")

求助!!!

把逻辑放在MainLauncher.init方法吧

是不是没加starter-nutz-mvc

pom里面有starter-nutz-mvc,另外Setup里面的init有NutConfig的参数,如果放在启动类的init里面,有什么可以代替NutConfig的?

@wendal 兽总,再次求助,现在项目启动和访问什么的都弄好了,但是项目原先是有多个数据源的,现在是添加了starter之后,原先配置数据源的js也删除了,现在使用nutzboot该如何配置多个数据源呢??

一般就是注入conf,直接写@Inject,ioc容器也是一样注入

看demo目录,有多数据源的demo

使用starter之后,依然可以使用src/main/resources/ioc/zxx.js配置自定义的ioc bean

因为我的properties的数据源配置项是以db.开头的,然后starter默认的是以jdbc.开头的,如果我写了自定的.js,是不是只要按照这样配置

            dataSource : {
			factory : "$conf#make",
			args : ["com.alibaba.druid.pool.DruidDataSource", "db."],
	        type : "com.alibaba.druid.pool.DruidDataSource",
	        events : {
	        	create : "init",
	            depose : 'close'
	        }
	    }

就依然可以使用db.开头进行配置

那不加starter-jdbc就好了

@wendal 兽总,有个现象我不知道您有没有遇到,我访问项目之后,所有的字体图标都不能正常解析出来了,全显示的是 口 ,这是编码的问题吗?

没有,控制台会显示很多黄色的警告内容,大致的意思就是字体相关的,我也没仔细研究

20Failed to decode downloaded font: <URL>
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.woff?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.woff?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.woff?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.woff?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.woff?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.woff?v=4.2.0
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.woff?v=4.2.0
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.woff?v=4.2.0
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.woff?v=4.2.0
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.woff?v=4.2.0
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.ttf?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.ttf?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.ttf?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.ttf?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/themify.ttf?-fvbane
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.ttf?v=4.2.0
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.ttf?v=4.2.0
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.ttf?v=4.2.0
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.ttf?v=4.2.0
area:1 Failed to decode downloaded font: http://36.7.159.105:7890/assets/fonts/fontawesome-webfont.ttf?v=4.2.0
10OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
area:1 OTS parsing error: incorrect file size in WOFF header
10OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory
area:1 OTS parsing error: incorrect entrySelector for table directory

incorrect file size in WOFF header 后端报啥? 没一点日志?

刷新整个页面之后,后台的日志

[DEBUG] 2019-06-14 09:11:08,715 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:712) - Processing socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]] with status [OPEN_READ]
[DEBUG] 2019-06-14 09:11:08,715 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:724) - Found processor [null] for socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]]
[DEBUG] 2019-06-14 09:11:08,715 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789) - Popped processor [org.apache.coyote.http11.Http11Processor@3879b264] from cache
[DEBUG] 2019-06-14 09:11:08,717 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:08,720 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [647]
[DEBUG] 2019-06-14 09:11:08,721 org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:402) - Received [GET /platform/hwell/user/type HTTP/1.1
Host: 127.0.0.1:7890
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Referer: http://127.0.0.1:7890/platform/hwell/nb/device/app/index
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,zh-TW;q=0.8
Cookie: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B

]
[DEBUG] 2019-06-14 09:11:08,722 org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:86) - Cookies: Parsing b[]: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B
[DEBUG] 2019-06-14 09:11:08,722 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:455) - Security checking request GET /platform/hwell/user/type
[DEBUG] 2019-06-14 09:11:08,722 org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.java:547) -   No applicable constraints defined
[DEBUG] 2019-06-14 09:11:08,722 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) -  Not subject to any constraint
[DEBUG] 2019-06-14 09:11:08,723 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/hwell/user/type : TbUserTypeController.index(TbUserTypeController.java:36)
[DEBUG] 2019-06-14 09:11:08,723 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'shiroUtil'<class cn.nutzboot.nutzwk.framework.util.ShiroUtil>
[DEBUG] 2019-06-14 09:11:08,724 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dateUtil'<class cn.nutzboot.nutzwk.framework.util.DateUtil>
[DEBUG] 2019-06-14 09:11:08,724 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'stringUtil'<class cn.nutzboot.nutzwk.framework.util.StringUtil>
[DEBUG] 2019-06-14 09:11:08,724 org.apache.tomcat.util.http.Parameters.setCharset(Parameters.java:117) - Set encoding to UTF-8
[DEBUG] 2019-06-14 09:11:08,725 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM sys_menu  WHERE href=?
    |                         1 |
    |---------------------------|
    | /platform/hwell/user/type |
  For example:> "SELECT * FROM sys_menu  WHERE href='/platform/hwell/user/type'"
[DEBUG] 2019-06-14 09:11:08,726 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM sys_menu  WHERE id=?
    |                                1 |
    |----------------------------------|
    | 35d36a51578a4dd191e7420b821c41e4 |
  For example:> "SELECT * FROM sys_menu  WHERE id='35d36a51578a4dd191e7420b821c41e4'"
[DEBUG] 2019-06-14 09:11:08,727 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'tbUserTypeController'<class cn.nutzboot.ikeeper.web.controllers.business.billing.TbUserTypeController>
[DEBUG] 2019-06-14 09:11:08,768 cn.nutzboot.ikeeper.commons.base.IKeeperLoginAuth.process(IKeeperLoginAuth.java:29) - IKeeperLoginAuth...................::127.0.0.1
[DEBUG] 2019-06-14 09:11:08,769 cn.nutzboot.nutzwk.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:30) - [GET ]URI=/platform/hwell/user/type 46ms
[DEBUG] 2019-06-14 09:11:08,770 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:08,771 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [0]
[DEBUG] 2019-06-14 09:11:08,771 org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:74) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Status in: [OPEN_READ], State out: [OPEN]
[DEBUG] 2019-06-14 09:11:08,771 org.apache.coyote.AbstractProtocol$ConnectionHandler.release(AbstractProtocol.java:996) - Pushed Processor [org.apache.coyote.http11.Http11Processor@3879b264]
[DEBUG] 2019-06-14 09:11:09,480 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:712) - Processing socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]] with status [OPEN_READ]
[DEBUG] 2019-06-14 09:11:09,481 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:724) - Found processor [null] for socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]]
[DEBUG] 2019-06-14 09:11:09,481 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789) - Popped processor [org.apache.coyote.http11.Http11Processor@3879b264] from cache
[DEBUG] 2019-06-14 09:11:09,481 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:09,481 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [659]
[DEBUG] 2019-06-14 09:11:09,481 org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:402) - Received [GET /assets/plugins/toastr/toastr.min.js?_=1560474669132 HTTP/1.1
Host: 127.0.0.1:7890
Connection: keep-alive
Accept: text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Referer: http://127.0.0.1:7890/platform/hwell/user/type
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,zh-TW;q=0.8
Cookie: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B

]
[DEBUG] 2019-06-14 09:11:09,482 org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:86) - Cookies: Parsing b[]: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B
[DEBUG] 2019-06-14 09:11:09,482 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:455) - Security checking request GET /assets/plugins/toastr/toastr.min.js
[DEBUG] 2019-06-14 09:11:09,482 org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.java:547) -   No applicable constraints defined
[DEBUG] 2019-06-14 09:11:09,483 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) -  Not subject to any constraint
[DEBUG] 2019-06-14 09:11:09,484 org.nutz.boot.starter.tomcat.TomcatStarter$ClasspathResourceSet.getResource(TomcatStarter.java:374) - Resource file:/F:/Programs/xgkeeper/hwell/webarch/meepo-nutzboot/target/classes/webapp/assets/plugins/toastr/toastr.min.js
[DEBUG] 2019-06-14 09:11:09,491 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:09,492 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [0]
[DEBUG] 2019-06-14 09:11:09,492 org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:74) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Status in: [OPEN_READ], State out: [OPEN]
[DEBUG] 2019-06-14 09:11:09,492 org.apache.coyote.AbstractProtocol$ConnectionHandler.release(AbstractProtocol.java:996) - Pushed Processor [org.apache.coyote.http11.Http11Processor@3879b264]
[DEBUG] 2019-06-14 09:11:09,562 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:712) - Processing socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]] with status [OPEN_READ]
[DEBUG] 2019-06-14 09:11:09,562 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:724) - Found processor [null] for socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]]
[DEBUG] 2019-06-14 09:11:09,562 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789) - Popped processor [org.apache.coyote.http11.Http11Processor@3879b264] from cache
[DEBUG] 2019-06-14 09:11:09,562 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:09,563 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [597]
[DEBUG] 2019-06-14 09:11:09,563 org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:402) - Received [GET /platform/home/path?url=http://127.0.0.1:7890/platform/hwell/user/type HTTP/1.1
Host: 127.0.0.1:7890
Connection: keep-alive
Accept: text/html, */*; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Referer: http://127.0.0.1:7890/platform/hwell/user/type
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,zh-TW;q=0.8
Cookie: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B

]
[DEBUG] 2019-06-14 09:11:09,563 org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:86) - Cookies: Parsing b[]: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B
[DEBUG] 2019-06-14 09:11:09,563 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:455) - Security checking request GET /platform/home/path
[DEBUG] 2019-06-14 09:11:09,564 org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.java:547) -   No applicable constraints defined
[DEBUG] 2019-06-14 09:11:09,564 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) -  Not subject to any constraint
[DEBUG] 2019-06-14 09:11:09,564 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [GET] path=/platform/home/path : SysHomeController.path(SysHomeController.java:94)
[DEBUG] 2019-06-14 09:11:09,565 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'shiroUtil'<class cn.nutzboot.nutzwk.framework.util.ShiroUtil>
[DEBUG] 2019-06-14 09:11:09,565 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dateUtil'<class cn.nutzboot.nutzwk.framework.util.DateUtil>
[DEBUG] 2019-06-14 09:11:09,565 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'stringUtil'<class cn.nutzboot.nutzwk.framework.util.StringUtil>
[DEBUG] 2019-06-14 09:11:09,565 org.apache.tomcat.util.http.Parameters.setCharset(Parameters.java:117) - Set encoding to UTF-8
[DEBUG] 2019-06-14 09:11:09,566 org.apache.tomcat.util.http.Parameters.handleQueryParameters(Parameters.java:216) - Decoding query null UTF-8
[DEBUG] 2019-06-14 09:11:09,566 org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:280) - Start processing with input [url=http://127.0.0.1:7890/platform/hwell/user/type]
[DEBUG] 2019-06-14 09:11:09,566 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM sys_menu  WHERE href=?
    |                   1 |
    |---------------------|
    | /platform/home/path |
  For example:> "SELECT * FROM sys_menu  WHERE href='/platform/home/path'"
[DEBUG] 2019-06-14 09:11:09,572 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'sysHomeController'<class cn.nutzboot.nutzwk.app.web.modules.controllers.platform.sys.SysHomeController>
[DEBUG] 2019-06-14 09:11:09,573 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM sys_menu  WHERE href IN (?,?,?,?) ORDER BY href DESC, path DESC   LIMIT 0, 1 
    |         1 |               2 |                    3 |                         4 |
    |-----------|-----------------|----------------------|---------------------------|
    | /platform | /platform/hwell | /platform/hwell/user | /platform/hwell/user/type |
  For example:> "SELECT * FROM sys_menu  WHERE href IN ('/platform','/platform/hwell','/platform/hwell/user','/platform/hwell/user/type') ORDER BY href DESC, path DESC   LIMIT 0, 1 "
[DEBUG] 2019-06-14 09:11:09,575 cn.nutzboot.ikeeper.commons.base.IKeeperLoginAuth.process(IKeeperLoginAuth.java:29) - IKeeperLoginAuth...................::127.0.0.1
[DEBUG] 2019-06-14 09:11:09,576 cn.nutzboot.nutzwk.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:30) - [GET ]URI=/platform/home/path 11ms
[DEBUG] 2019-06-14 09:11:09,577 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:09,577 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [0]
[DEBUG] 2019-06-14 09:11:09,577 org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:74) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Status in: [OPEN_READ], State out: [OPEN]
[DEBUG] 2019-06-14 09:11:09,578 org.apache.coyote.AbstractProtocol$ConnectionHandler.release(AbstractProtocol.java:996) - Pushed Processor [org.apache.coyote.http11.Http11Processor@3879b264]
[DEBUG] 2019-06-14 09:11:09,620 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:712) - Processing socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]] with status [OPEN_READ]
[DEBUG] 2019-06-14 09:11:09,622 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:724) - Found processor [null] for socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]]
[DEBUG] 2019-06-14 09:11:09,623 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789) - Popped processor [org.apache.coyote.http11.Http11Processor@3879b264] from cache
[DEBUG] 2019-06-14 09:11:09,623 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:09,623 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [1871]
[DEBUG] 2019-06-14 09:11:09,624 org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:402) - Received [POST /platform/hwell/user/type/data HTTP/1.1
Host: 127.0.0.1:7890
Connection: keep-alive
Content-Length: 1173
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://127.0.0.1:7890
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Referer: http://127.0.0.1:7890/platform/hwell/user/type
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,zh-TW;q=0.8
Cookie: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B

draw=1&columns%5B0%5D%5Bdata%5D=0&columns%5B0%5D%5Bname%5D=&columns%5B0%5D%5Bsearchable%5D=true&columns%5B0%5D%5Borderable%5D=false&columns%5B0%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B0%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B1%5D%5Bdata%5D=name&columns%5B1%5D%5Bname%5D=&columns%5B1%5D%5Bsearchable%5D=true&columns%5B1%5D%5Borderable%5D=true&columns%5B1%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B1%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B2%5D%5Bdata%5D=description&columns%5B2%5D%5Bname%5D=&columns%5B2%5D%5Bsearchable%5D=true&columns%5B2%5D%5Borderable%5D=true&columns%5B2%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B2%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B3%5D%5Bdata%5D=opAt&columns%5B3%5D%5Bname%5D=&columns%5B3%5D%5Bsearchable%5D=true&columns%5B3%5D%5Borderable%5D=true&columns%5B3%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B3%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B4%5D%5Bdata%5D=4&columns%5B4%5D%5Bname%5D=&columns%5B4%5D%5Bsearchable%5D=true&columns%5B4%5D%5Borderable%5D=true&columns%5B4%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B4%5D%5Bsearch%5D%5Bregex%5D=false&order%5B0%5D%5Bcolumn%5D=1&order%5B0%5D%5Bdir%5D=desc&start=0&length=50&search%5Bvalue%5D=&search%5Bregex%5D=false]
[DEBUG] 2019-06-14 09:11:09,624 org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:86) - Cookies: Parsing b[]: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B
[DEBUG] 2019-06-14 09:11:09,624 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:455) - Security checking request POST /platform/hwell/user/type/data
[DEBUG] 2019-06-14 09:11:09,624 org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.java:547) -   No applicable constraints defined
[DEBUG] 2019-06-14 09:11:09,625 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) -  Not subject to any constraint
[DEBUG] 2019-06-14 09:11:09,625 org.nutz.mvc.impl.UrlMappingImpl.get(UrlMappingImpl.java:101) - Found mapping for [POST] path=/platform/hwell/user/type/data : TbUserTypeController.data(TbUserTypeController.java:42)
[DEBUG] 2019-06-14 09:11:09,626 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'shiroUtil'<class cn.nutzboot.nutzwk.framework.util.ShiroUtil>
[DEBUG] 2019-06-14 09:11:09,626 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dateUtil'<class cn.nutzboot.nutzwk.framework.util.DateUtil>
[DEBUG] 2019-06-14 09:11:09,627 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'stringUtil'<class cn.nutzboot.nutzwk.framework.util.StringUtil>
[DEBUG] 2019-06-14 09:11:09,627 org.apache.tomcat.util.http.Parameters.setCharset(Parameters.java:117) - Set encoding to UTF-8
[DEBUG] 2019-06-14 09:11:09,627 org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:280) - Start processing with input [draw=1&columns%5B0%5D%5Bdata%5D=0&columns%5B0%5D%5Bname%5D=&columns%5B0%5D%5Bsearchable%5D=true&columns%5B0%5D%5Borderable%5D=false&columns%5B0%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B0%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B1%5D%5Bdata%5D=name&columns%5B1%5D%5Bname%5D=&columns%5B1%5D%5Bsearchable%5D=true&columns%5B1%5D%5Borderable%5D=true&columns%5B1%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B1%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B2%5D%5Bdata%5D=description&columns%5B2%5D%5Bname%5D=&columns%5B2%5D%5Bsearchable%5D=true&columns%5B2%5D%5Borderable%5D=true&columns%5B2%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B2%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B3%5D%5Bdata%5D=opAt&columns%5B3%5D%5Bname%5D=&columns%5B3%5D%5Bsearchable%5D=true&columns%5B3%5D%5Borderable%5D=true&columns%5B3%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B3%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B4%5D%5Bdata%5D=4&columns%5B4%5D%5Bname%5D=&columns%5B4%5D%5Bsearchable%5D=true&columns%5B4%5D%5Borderable%5D=true&columns%5B4%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B4%5D%5Bsearch%5D%5Bregex%5D=false&order%5B0%5D%5Bcolumn%5D=1&order%5B0%5D%5Bdir%5D=desc&start=0&length=50&search%5Bvalue%5D=&search%5Bregex%5D=false]
[DEBUG] 2019-06-14 09:11:09,628 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM sys_menu  WHERE href=?
    |                              1 |
    |--------------------------------|
    | /platform/hwell/user/type/data |
  For example:> "SELECT * FROM sys_menu  WHERE href='/platform/hwell/user/type/data'"
[DEBUG] 2019-06-14 09:11:09,629 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'tbUserTypeController'<class cn.nutzboot.ikeeper.web.controllers.business.billing.TbUserTypeController>
[DEBUG] 2019-06-14 09:11:09,632 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT COUNT(*) FROM tb_user_type  WHERE unitId=?
    |    1 |
    |------|
    | root |
  For example:> "SELECT COUNT(*) FROM tb_user_type  WHERE unitId='root'"
[DEBUG] 2019-06-14 09:11:09,638 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT * FROM tb_user_type  WHERE unitId=? ORDER BY name DESC   LIMIT 0, 50 
    |    1 |
    |------|
    | root |
  For example:> "SELECT * FROM tb_user_type  WHERE unitId='root' ORDER BY name DESC   LIMIT 0, 50 "
[DEBUG] 2019-06-14 09:11:09,642 cn.nutzboot.ikeeper.commons.base.IKeeperLoginAuth.process(IKeeperLoginAuth.java:29) - IKeeperLoginAuth...................::127.0.0.1
[DEBUG] 2019-06-14 09:11:09,643 cn.nutzboot.nutzwk.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:30) - [POST]URI=/platform/hwell/user/type/data 17ms
[DEBUG] 2019-06-14 09:11:09,644 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:09,644 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [0]
[DEBUG] 2019-06-14 09:11:09,644 org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:74) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Status in: [OPEN_READ], State out: [OPEN]
[DEBUG] 2019-06-14 09:11:09,644 org.apache.coyote.AbstractProtocol$ConnectionHandler.release(AbstractProtocol.java:996) - Pushed Processor [org.apache.coyote.http11.Http11Processor@3879b264]
[DEBUG] 2019-06-14 09:11:09,874 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:712) - Processing socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]] with status [OPEN_READ]
[DEBUG] 2019-06-14 09:11:09,874 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:724) - Found processor [null] for socket [org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]]
[DEBUG] 2019-06-14 09:11:09,874 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789) - Popped processor [org.apache.coyote.http11.Http11Processor@3879b264] from cache
[DEBUG] 2019-06-14 09:11:09,874 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:09,875 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [577]
[DEBUG] 2019-06-14 09:11:09,875 org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:402) - Received [GET /assets/images/water.jpg HTTP/1.1
Host: 127.0.0.1:7890
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Accept: image/webp,image/apng,image/*,*/*;q=0.8
Referer: http://127.0.0.1:7890/platform/hwell/user/type
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9,zh-TW;q=0.8
Cookie: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B

]
[DEBUG] 2019-06-14 09:11:09,875 org.apache.tomcat.util.http.Rfc6265CookieProcessor.parseCookieHeader(Rfc6265CookieProcessor.java:86) - Cookies: Parsing b[]: sid=abda575b-7199-4361-aad1-782a6f387552; tagBread=%E6%A1%A3%E6%A1%88%E7%AE%A1%E7%90%86%2F%E7%94%A8%E6%88%B7%E7%B1%BB%E5%9E%8B
[DEBUG] 2019-06-14 09:11:09,875 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:455) - Security checking request GET /assets/images/water.jpg
[DEBUG] 2019-06-14 09:11:09,875 org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.java:547) -   No applicable constraints defined
[DEBUG] 2019-06-14 09:11:09,875 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491) -  Not subject to any constraint
[DEBUG] 2019-06-14 09:11:09,876 org.nutz.boot.starter.tomcat.TomcatStarter$ClasspathResourceSet.getResource(TomcatStarter.java:374) - Resource file:/F:/Programs/xgkeeper/hwell/webarch/meepo-nutzboot/target/classes/webapp/assets/images/water.jpg
[DEBUG] 2019-06-14 09:11:09,915 org.apache.tomcat.util.net.SocketWrapperBase.populateReadBuffer(SocketWrapperBase.java:312) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read from buffer: [0]
[DEBUG] 2019-06-14 09:11:09,916 org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1225) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Read direct from socket: [0]
[DEBUG] 2019-06-14 09:11:09,916 org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:74) - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@1d7c965a:org.apache.tomcat.util.net.NioChannel@6031ec6b:java.nio.channels.SocketChannel[connected local=/127.0.0.1:7890 remote=/127.0.0.1:52468]], Status in: [OPEN_READ], State out: [OPEN]
[DEBUG] 2019-06-14 09:11:09,916 org.apache.coyote.AbstractProtocol$ConnectionHandler.release(AbstractProtocol.java:996) - Pushed Processor [org.apache.coyote.http11.Http11Processor@3879b264]

换成jetty试试

改个starter就行了吧

@wendal 兽总,我把starter-tomcat改成starter-jetty之后,启动无法初始化自定义Setup,并且启动报错

[WARN ] 2019-06-14 09:24:11,123 org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:554) - Failed startup of context o.e.j.w.WebAppContext@6a74d228{NutzWk,/,[jar:file:/F:/Repository/Maven_Repo/org/nutz/nutzboot-starter-swagger/2.3-SNAPSHOT/nutzboot-starter-swagger-2.3-20190108.025320-83.jar!/static/, file:///F:/Programs/xgkeeper/hwell/webarch/meepo-nutzboot/target/classes/webapp/],UNAVAILABLE}
java.lang.IllegalStateException: There is already a Shiro environment associated with the current ServletContext.  Check if you have multiple EnvironmentLoader* definitions in your web.xml!
	at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:124)
	at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:957)
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:552)
	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:922)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:364)
	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1497)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1459)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:852)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:278)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:545)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:138)
	at org.eclipse.jetty.server.Server.start(Server.java:415)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:108)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
	at org.eclipse.jetty.server.Server.doStart(Server.java:382)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
	at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:138)
	at org.nutz.boot.AppContext.startServers(AppContext.java:306)
	at org.nutz.boot.NbApp.execute(NbApp.java:206)
	at org.nutz.boot.NbApp.run(NbApp.java:178)
	at cn.nutzboot.MainLauncher.main(MainLauncher.java:37)

启动类

@IocBean(create = "init", depose = "depose")
public class MainLauncher {

    @Inject
    private Dao dao;
    @Inject
    private AppContext appContext;

    public void init() {
        
    }

    public void depose() {
        
    }

    public static void main(String[] args) throws Exception {
        /*NbApp na = new NbApp(Module.class).setArgs(args).setPrintProcDoc(true);
        na.getAppContext().setMainPackage("cn.nutzboot");
        na.run();*/
        new NbApp(Module.class).setArgs(args).setPrintProcDoc(true).run();

    }
}

@Wizzercn 您给的示例是直接把原先的Setup初始化放到启动类的初始化里面是吧?

new NbApp(Module.class)

这样写, MainLaucher的注解统统不会走

那个报错是 web.xml自定义的了swagger/shiro, 然后又引入了starter-swagger/starter-shiro

你要改造的东西还很多呢, 要么减少starter引用, 要么改web.xml及iocby等注解

这是之前nutzwk项目的主类,并且在改成nutzboot之后修改后的写法

@Modules(packages = {"cn.nutzboot"})
@Ok("json:full")
@Fail("http:500")
@Localization(value = "locales/", defaultLocalizationKey = "zh_CN")
@Encoding(input = "UTF-8", output = "UTF-8")
@SetupBy(value = Setup.class)
@ChainBy(args = "chain/nutzwk-mvc-chain.json")
@SessionBy(ShiroSessionProvider.class)
public class Module {
}

目前使用的web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">
    <display-name>NutzWk</display-name>

    <!-- Shiro -->
    <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>

    <!-- Custom Route -->
    <filter>
        <filter-name>route</filter-name>
        <filter-class>cn.nutzboot.nutzwk.app.web.commons.filter.RouteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>route</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <!-- druid -->
    <servlet>
        <servlet-name>DruidStatView</servlet-name>
        <servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
        <init-param>
            <param-name>allow</param-name>
            <param-value>127.0.0.1</param-value>
        </init-param>
        <init-param>
            <param-name>exclusions</param-name>
            <param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*,/assets/*,/upload/*,/apidoc/*</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>DruidStatView</servlet-name>
        <url-pattern>/druid/*</url-pattern>
    </servlet-mapping>

    <error-page>
        <error-code>403</error-code>
        <location>/webapp/WEB-INF/error/403.html</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/webapp/WEB-INF/error/404.html</location>
    </error-page>
</web-app>

目前引入的starter

<!--nutz-boot-->
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-swagger</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-nutz-mvc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-nutz-dao</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-jdbc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-quartz</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-jetty</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-shiro</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-beetl</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-redis</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-weixin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-wkcache</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-email</artifactId>
        </dependency>
        <dependency>
            <groupId>org.nutz</groupId>
            <artifactId>nutzboot-starter-rabbitmq</artifactId>
        </dependency>

在使用tomcat-starter时,除了不能正常解析字体图标,项目可以正常运行访问,改成jetty之后,出现部分问题

引入starter-shiro之后, web.xml里面就不能有shiro

druid的配置也得去掉

引入starter-jedis/weixin之后, @IocBy里面的*jedis/*weixin也需要同步去掉了, 基本上都是starter自动完成配置

一个个来呗, 看看最后改造成啥, 哈哈

窝草,好尴尬,我看到web.xml报错之后,然后注销了相关的ShiroFilter代码,结果运行还错;刚刚重新试了一下,项目正常运行了,但是问题还是之前的问题,字体图标不能解析

我IocBy全部去掉了,吧rabbitmq-starter都引进来了,现在再把web.xml里面的druid相关的代码再注销掉重新试试

发现问题了,浏览器里面没有加载到bootstrap的字体文件

但是工程里面是存在的

通过url能访问到?

url访问的连接是直接能下载文件

我想问下,之前放在web.xml里面的过滤器,在哪里能重新配置?

依然可以写在web.xml里面,你之前的web.xml没看到啥特别过滤器呀?

位置很特别?为啥需要过滤来处理?

就是处理过滤静态文件后缀名的,现在想设置过滤字体相关的文件

添加回复
请先登陆
回到顶部