NutzCN Logo
问答 TempFile上传文件到linux会乱码
发布于 10天前 作者 qq_e16e2a9b 168 次浏览 复制 上一个帖子 下一个帖子
标签:
String name =  new String(fileName.substring(0, fileName.indexOf(".")).getBytes(),"utf-8");
                String path = getServletContext().getRealPath("/") + "/import/excel/" + name + "_" + System.currentTimeMillis() + "." + suffix;
                ro.setResult("/import/excel/" + name + "_" + System.currentTimeMillis() + "." + suffix);
                file.write(path);

我把path显示在前端页面不会乱码,并且用这个path传到后台也还是能读到文件。但是在linux服务器上,这个文件名是乱码的,望解答,多谢!

12 回复

fileName变量的来源没看到

 public ReturnObject uploadExcel(@Param("file") TempFile file) {
        ReturnObject ro = new ReturnObject();
        try {
            String fileName = file.getSubmittedFileName();
            String suffix = fileName.substring(fileName.lastIndexOf(".") + 1);
            if (!StringUtils.contains("xls,xlsx", suffix)) {
                ro.addError("文件格式不正确");
            }
            if (ro.getSuccess(true)) {
                String name =  new String(fileName.substring(0, fileName.indexOf(".")).getBytes(),"utf-8");
                String path = getServletContext().getRealPath("/") + "/import/excel/" + name + "_" + System.currentTimeMillis() + "." + suffix;
                ro.setResult("/import/excel/" + name + "_" + System.currentTimeMillis() + "." + suffix);
                file.write(path);
            }
            file.delete();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return ro;

看看启动时的环境编码, 日志里面有

[org.nutz.mvc.impl.UrlMappingImpl] -    '/total/upload'             >> (TotalControl.java:144).upload        : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)

环境编码,不是这段

[org.nutz.resource.Scans] - Locations count=103 time use 154ms
[org.nutz.resource.Scans] - Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
[org.nutz.ioc.impl.PropertiesProxy] - load properties from jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter/2.0/nutzboot-starter-2.0.jar!/custom/emtry.properties
[org.nutz.resource.Scans] - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
[org.nutz.ioc.loader.json.JsonLoader] - loading [emtry.json]
[org.nutz.ioc.loader.json.JsonLoader] - Loaded 0 bean define from path=[ioc/] --> []
[org.nutz.castor.Castors] - Using 95 castor for Castors
[org.nutz.ioc.aop.SimpleAopMaker] - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -  > scan 'cn.ycmedia'
[org.nutz.resource.Scans] - Found 97 resource by src( cn/ycmedia/ ) , regex( ^.+[.]class$ )
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'baseController                          ' - cn.ycmedia.common.base.BaseController
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'campaignControl                         ' - cn.ycmedia.controller.CampaignControl
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'channelControl                          ' - cn.ycmedia.controller.ChannelControl
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'importControl                           ' - cn.ycmedia.controller.ImportControl
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'importImgsControl                       ' - cn.ycmedia.controller.ImportImgsControl
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'sysAdminUserControl                     ' - cn.ycmedia.controller.SysAdminUserControl
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'testControl                             ' - cn.ycmedia.controller.TestControl
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'totalControl                            ' - cn.ycmedia.controller.TotalControl
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'verifyCodeControl                       ' - cn.ycmedia.controller.VerifyCodeControl
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'mainLauncher                            ' - cn.ycmedia.MainLauncher
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -  > scan 'org.nutz.boot.starter'
[org.nutz.resource.Scans] - Found 25 resource by src( org/nutz/boot/starter/ ) , regex( ^.+[.]class$ )
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'nutFilterStarter                        ' - org.nutz.boot.starter.nutz.mvc.NutFilterStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : NutFilterStarter.createNutFilter(...) define as name=nutFilter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'whaleFilterStarter                      ' - org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : WhaleFilterStarter.createNutFilter(...) define as name=whaleFilter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'nutDaoStarter                           ' - org.nutz.boot.starter.nutz.dao.NutDaoStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : NutDaoStarter.getSqlManager(...) define as name=sqlManager
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : NutDaoStarter.getDao(...) define as name=dao
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : NutDaoStarter.createCacheSerializer(...) define as name=daoCacheSerializer
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : NutDaoStarter.createDaoCacheInterceptor(...) define as name=daoCacheInterceptor
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'dataSourceStarter                       ' - org.nutz.boot.starter.jdbc.DataSourceStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : DataSourceStarter.getDataSource(...) define as name=dataSource
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : DataSourceStarter.createDruidDataSource(...) define as name=druidDataSource
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : DataSourceStarter.createHikariCPDataSource(...) define as name=hikariDataSource
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'druidWebStatFilterStarter               ' - org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'druidWebStatServletStarter              ' - org.nutz.boot.starter.jdbc.DruidWebStatServletStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'tomcatStarter                           ' - org.nutz.boot.starter.tomcat.TomcatStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'zbusStarter                             ' - org.nutz.boot.starter.zbus.ZbusStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'shardingJdbcDataSourceStarter           ' - org.nutz.boot.starter.shardingjdbc.ShardingJdbcDataSourceStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : ShardingJdbcDataSourceStarter.getDataSource(...) define as name=dataSource
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'beetlSqlStarter                         ' - org.nutz.boot.starter.beetlsql.BeetlSqlStarter
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : BeetlSqlStarter.createDBStyle(...) define as name=beetlsqlDBStyle
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : BeetlSqlStarter.creatSQLManager(...) define as name=beetlsqlManager
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : BeetlSqlStarter.createConnectionSource(...) define as name=beetlsqlConnectionSource
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'jedisStarter                            ' - org.nutz.boot.starter.redis.JedisStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-nutz-mvc/2.0/nutzboot-starter-nutz-mvc-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-nutz-dao/2.0/nutzboot-starter-nutz-dao-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-jdbc/2.0/nutzboot-starter-jdbc-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-weixin/2.0/nutzboot-starter-weixin-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-tomcat/2.0/nutzboot-starter-tomcat-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-zbus/2.0/nutzboot-starter-zbus-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-sharding-jdbc/2.0/nutzboot-starter-sharding-jdbc-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-beetlsql/2.0/nutzboot-starter-beetlsql-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-wkcache/2.0/nutzboot-starter-wkcache-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.boot.NbApp] - Found jar:file:/C:/Users/ycmedia/.m2/repository/org/nutz/nutzboot-starter-redis/2.0/nutzboot-starter-redis-2.0.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[org.nutz.ioc.impl.NutIoc] - ... NutIoc init complete
[org.nutz.ioc.impl.ScopeContext] - Save object 'appContext' to [app] 
[org.nutz.ioc.impl.ScopeContext] - Save object 'conf' to [app] 
[org.nutz.ioc.impl.ScopeContext] - Save object 'nbApp' to [app] 
[org.nutz.ioc.impl.NutIoc] - Get 'nutFilterStarter'<class org.nutz.boot.starter.nutz.mvc.NutFilterStarter>
[org.nutz.ioc.impl.NutIoc] - Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=$aop_async
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject($aop_async) in AsyncAopIocLoader@50699452
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
[org.nutz.ioc.impl.ScopeContext] - Save object '$aop_async' to [app] 
[org.nutz.ioc.aop.SimpleAopMaker] - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=nutFilterStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(nutFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'nutFilterStarter'<class org.nutz.boot.starter.nutz.mvc.NutFilterStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'nutFilterStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.nutz.mvc.NutFilterStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.ioc.impl.NutIoc] - Get 'whaleFilterStarter'<class org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=whaleFilterStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(whaleFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'whaleFilterStarter'<class org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'whaleFilterStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.ioc.impl.NutIoc] - Get 'nutDaoStarter'<class org.nutz.boot.starter.nutz.dao.NutDaoStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=nutDaoStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(nutDaoStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'nutDaoStarter'<class org.nutz.boot.starter.nutz.dao.NutDaoStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'nutDaoStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.nutz.dao.NutDaoStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.ioc.impl.NutIoc] - Get 'dataSourceStarter'<class org.nutz.boot.starter.jdbc.DataSourceStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=dataSourceStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(dataSourceStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'dataSourceStarter'<class org.nutz.boot.starter.jdbc.DataSourceStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'dataSourceStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.jdbc.DataSourceStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.ioc.impl.NutIoc] - Get 'druidWebStatFilterStarter'<class org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=druidWebStatFilterStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(druidWebStatFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'druidWebStatFilterStarter'<class org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'druidWebStatFilterStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.ioc.impl.NutIoc] - Get 'druidWebStatServletStarter'<class org.nutz.boot.starter.jdbc.DruidWebStatServletStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=druidWebStatServletStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(druidWebStatServletStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'druidWebStatServletStarter'<class org.nutz.boot.starter.jdbc.DruidWebStatServletStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'druidWebStatServletStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.jdbc.DruidWebStatServletStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.resource.Scans] - Found 1 resource by src( org/nutz/plugins/weixin/weixin.js ) , regex( ^(.+[.])(js|json)$ )
[org.nutz.ioc.loader.json.JsonLoader] - loading [org/nutz/plugins/weixin/weixin.js]
[org.nutz.ioc.loader.json.JsonLoader] - Loaded 3 bean define from path=[org/nutz/plugins/weixin/weixin.js] --> [wxApi2, wxAccessTokenStore, wxLogin]
[org.nutz.ioc.impl.NutIoc] - Get 'tomcatStarter'<class org.nutz.boot.starter.tomcat.TomcatStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=tomcatStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(tomcatStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'tomcatStarter'<class org.nutz.boot.starter.tomcat.TomcatStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'tomcatStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.tomcat.TomcatStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.ioc.impl.NutIoc] - Get 'zbusStarter'<class org.nutz.boot.starter.zbus.ZbusStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=zbusStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(zbusStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'zbusStarter'<class org.nutz.boot.starter.zbus.ZbusStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'zbusStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.zbus.ZbusStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.ioc.impl.NutIoc] - Get 'appContext'<class org.nutz.boot.AppContext>
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -  > scan 'org.nutz.integration.zbus'
[org.nutz.resource.Scans] - Found 11 resource by src( org/nutz/integration/zbus/ ) , regex( ^.+[.]class$ )
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'zbusBrokerBean                          ' - org.nutz.integration.zbus.broker.ZbusBrokerBean
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : ZbusBrokerBean.createBrokerConfig(...) define as name=zbusBrokerConfig
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : ZbusBrokerBean.createBroker(...) define as name=zbusBroker
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'zbus_invoker_factory                    ' - org.nutz.integration.zbus.rpc.ZbusClientBean
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : ZbusClientBean.createHttpClientBootstrap(...) define as name=zbusHttpClientBootstrap
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : ZbusClientBean.createMqClientBootstrap(...) define as name=zbusMqClientBootstrap
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'zbusServiceBean                         ' - org.nutz.integration.zbus.rpc.ZbusServiceBean
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : ZbusServiceBean.createHttpServiceBootstrap(...) define as name=zbusHttpServiceBootstrap
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : ZbusServiceBean.createMqServiceBootstrap(...) define as name=zbusMqServiceBootstrap
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] - Found @IocBean method : ZbusServiceBean.createZBusServiceBootstrap(...) define as name=zbusServiceBootstrap
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'zbus                                    ' - org.nutz.integration.zbus.ZbusFactory
[org.nutz.ioc.impl.NutIoc] - Get 'shardingJdbcDataSourceStarter'<class org.nutz.boot.starter.shardingjdbc.ShardingJdbcDataSourceStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=shardingJdbcDataSourceStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(shardingJdbcDataSourceStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'shardingJdbcDataSourceStarter'<class org.nutz.boot.starter.shardingjdbc.ShardingJdbcDataSourceStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'shardingJdbcDataSourceStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.shardingjdbc.ShardingJdbcDataSourceStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.ioc.impl.NutIoc] - Get 'appContext'<class org.nutz.boot.AppContext>
[org.nutz.ioc.impl.NutIoc] - Get 'beetlSqlStarter'<class org.nutz.boot.starter.beetlsql.BeetlSqlStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=beetlSqlStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(beetlSqlStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'beetlSqlStarter'<class org.nutz.boot.starter.beetlsql.BeetlSqlStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'beetlSqlStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.beetlsql.BeetlSqlStarter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -  > scan 'org.nutz.plugins.wkcache'
[org.nutz.resource.Scans] - Found 13 resource by src( org/nutz/plugins/wkcache/ ) , regex( ^.+[.]class$ )
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add '$aop_wkcache                            ' - org.nutz.plugins.wkcache.WkcacheAopConfigure
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'wkcacheRemoveAllInterceptor             ' - org.nutz.plugins.wkcache.WkcacheRemoveAllInterceptor
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'wkcacheRemoveEntryInterceptor           ' - org.nutz.plugins.wkcache.WkcacheRemoveEntryInterceptor
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'wkcacheResultInterceptor                ' - org.nutz.plugins.wkcache.WkcacheResultInterceptor
[org.nutz.ioc.loader.annotation.AnnotationIocLoader] -    > add 'wkcacheUpdateInterceptor                ' - org.nutz.plugins.wkcache.WkcacheUpdateInterceptor
[org.nutz.ioc.impl.NutIoc] - Get 'jedisStarter'<class org.nutz.boot.starter.redis.JedisStarter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=jedisStarter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(jedisStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'jedisStarter'<class org.nutz.boot.starter.redis.JedisStarter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'jedisStarter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.boot.starter.redis.JedisStarter without AOP
[org.nutz.resource.Scans] - Found 1 resource by src( org/nutz/integration/jedis/jedis.js ) , regex( ^(.+[.])(js|json)$ )
[org.nutz.ioc.loader.json.JsonLoader] - loading [org/nutz/integration/jedis/jedis.js]
[org.nutz.ioc.loader.json.JsonLoader] - Loaded 9 bean define from path=[org/nutz/integration/jedis/jedis.js] --> [redisService, jedisCluster, jedisClusterNodes, jedisClusterWrapper, pubSubService, jedisPoolConfig, jedisPool, jedisAgent, redis]
[org.nutz.ioc.impl.NutIoc] - Get 'druidWebStatFilterStarter'<interface org.nutz.boot.starter.WebFilterFace>
[org.nutz.ioc.impl.NutIoc] - Get 'whaleFilterStarter'<interface org.nutz.boot.starter.WebFilterFace>
[org.nutz.ioc.impl.NutIoc] - Get 'nutFilterStarter'<interface org.nutz.boot.starter.WebFilterFace>
[org.nutz.ioc.impl.NutIoc] - Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=whaleFilter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(whaleFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'whaleFilter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.mvc.WhaleFilter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'whaleFilterStarter'<>
[org.nutz.boot.starter.tomcat.TomcatStarter] - [NutzBoot] add filter name=whale pathSpec=/*
[org.nutz.ioc.impl.NutIoc] - Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[org.nutz.ioc.impl.NutIoc] - Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[org.nutz.boot.starter.tomcat.TomcatStarter] - [NutzBoot] add filter name=druid pathSpec=/*
[org.nutz.ioc.impl.NutIoc] - Get 'nutFilter'<class org.nutz.mvc.NutFilter>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=nutFilter
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(nutFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'nutFilter'<class org.nutz.mvc.NutFilter>
[org.nutz.ioc.impl.ScopeContext] - Save object 'nutFilter' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class org.nutz.mvc.NutFilter without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'nutFilterStarter'<>
[org.nutz.boot.starter.tomcat.TomcatStarter] - [NutzBoot] add filter name=nutz pathSpec=/*
[org.nutz.ioc.impl.NutIoc] - Get 'nutFilter'<class org.nutz.mvc.NutFilter>
[org.nutz.ioc.impl.NutIoc] - Get 'nutFilter'<class org.nutz.mvc.NutFilter>
[org.nutz.ioc.impl.NutIoc] - Get 'druidWebStatServletStarter'<interface org.nutz.boot.starter.WebServletFace>
[org.nutz.boot.starter.tomcat.TomcatStarter] - [NutzBoot] add servlet name=druid pathSpec=/druid/*
[org.nutz.boot.starter.jdbc.DruidWebStatServletStarter] - druid stat view random password=2bf30npkt6h8tqq52af0fedddj
六月 08, 2018 10:57:25 上午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-nio-8505"]
六月 08, 2018 10:57:25 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
信息: Using a shared selector for servlet write/read
六月 08, 2018 10:57:25 上午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Tomcat]
六月 08, 2018 10:57:25 上午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.24
[org.nutz.mvc.NutFilter] - NutFilter[nutz] starting ...
[org.nutz.resource.impl.ErrorResourceLocation] - [loc=C:\Users\ycmedia\AppData\Local\Temp\tomcat-docbase.8392716078396134400.8505\WEB-INF\classes]not exist
[org.nutz.resource.Scans] - Locations count=104 time use 1ms
[org.nutz.mvc.config.AbstractNutConfig] - Loading by class org.nutz.boot.starter.nutz.mvc.NbMvcLoading
[org.nutz.mvc.impl.NutLoading] - Nutz Version : 1.r.63.r3-20171220 
[org.nutz.mvc.impl.NutLoading] - Nutz.Mvc[nutz] is initializing ...
[org.nutz.mvc.impl.NutLoading] - Web Container Information:
[org.nutz.mvc.impl.NutLoading] -  - Default Charset : UTF-8
[org.nutz.mvc.impl.NutLoading] -  - Current . path  : E:\trunk-b2b\dcs.ztads.net\.
[org.nutz.mvc.impl.NutLoading] -  - Java Version    : 1.8.0_112
[org.nutz.mvc.impl.NutLoading] -  - File separator  : \
[org.nutz.mvc.impl.NutLoading] -  - Timezone        : Asia/Shanghai
[org.nutz.mvc.impl.NutLoading] -  - OS              : Windows 7 amd64
[org.nutz.mvc.impl.NutLoading] -  - ServerInfo      : Apache Tomcat/8.5.24
[org.nutz.mvc.impl.NutLoading] -  - Servlet API     : 3.1
[org.nutz.mvc.impl.NutLoading] -  - ContextPath     : 
[org.nutz.mvc.impl.NutLoading] -  - context.tempdir : C:\Users\ycmedia\AppData\Local\Temp\tomcat.3312138167880400669.8505\work\Tomcat\127.0.0.1\ROOT
[org.nutz.mvc.impl.NutLoading] -  - MainModule      : cn.ycmedia.MainLauncher
[org.nutz.mvc.impl.NutLoading] - >> app.root = C:/Users/ycmedia/AppData/Local/Temp/tomcat-docbase.8392716078396134400.8505
[org.nutz.mvc.impl.NutLoading] - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[org.nutz.mvc.impl.NutLoading] - @Views(DefaultViewMaker.class)
[org.nutz.mvc.impl.NutLoading] - @ChainBy(cn.ycmedia.common.exception.MyActionChainMaker)
[org.nutz.mvc.impl.Loadings] - module class location 'file:/E:/trunk-b2b/dcs.ztads.net/target/classes/'
[org.nutz.mvc.impl.Loadings] -  > scan 'cn.ycmedia'
[org.nutz.resource.Scans] - Found 97 resource by src( cn/ycmedia/ ) , regex( ^.+[.]class$ )
[org.nutz.mvc.impl.Loadings] -    >> add 'cn.ycmedia.controller.CampaignControl'
[org.nutz.mvc.impl.Loadings] -    >> add 'cn.ycmedia.controller.ChannelControl'
[org.nutz.mvc.impl.Loadings] -    >> add 'cn.ycmedia.controller.ImportControl'
[org.nutz.mvc.impl.Loadings] -    >> add 'cn.ycmedia.controller.ImportImgsControl'
[org.nutz.mvc.impl.Loadings] -    >> add 'cn.ycmedia.controller.SysAdminUserControl'
[org.nutz.mvc.impl.Loadings] -    >> add 'cn.ycmedia.controller.TestControl'
[org.nutz.mvc.impl.Loadings] -    >> add 'cn.ycmedia.controller.TotalControl'
[org.nutz.mvc.impl.Loadings] -    >> add 'cn.ycmedia.controller.VerifyCodeControl'
[org.nutz.mvc.impl.NutLoading] - Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/init'            >> (CampaignControl.java:49).init        : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/delete'          >> (CampaignControl.java:201).delete     : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/list'            >> (CampaignControl.java:87).list        : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/save'            >> (CampaignControl.java:148).save       : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/initEdit'        >> (CampaignControl.java:107).initEdit   : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/updateWeight'    >> (CampaignControl.java:244).updateWeight : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/union/clear'     >> (CampaignControl.java:344).unionclear : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/zc/clear'        >> (CampaignControl.java:446).zcClear    : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/getcode'         >> (CampaignControl.java:285).getCode    : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/updatePredictedState' >> (CampaignControl.java:222).updatePredictedState : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/campaign/updatePredictedNum' >> (CampaignControl.java:265).updatePredictedNum : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.filepool.NutFilePool] - Init file-pool by: C:/Users/ycmedia/AppData/Local/Temp/tomcat-docbase.8392716078396134400.8505/tmp2 [2000]
[org.nutz.filepool.NutFilePool] - file-pool.home: 'C:\Users\ycmedia\AppData\Local\Temp\tomcat-docbase.8392716078396134400.8505\tmp2'
[org.nutz.filepool.NutFilePool] - file-pool.cursor: 0
[org.nutz.mvc.impl.UrlMappingImpl] -    '/test/upload'              >> (TestControl.java:41).upload          : ReturnObject | @Ok(json ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/channel/list'             >> (ChannelControl.java:38).list         : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/channel/save'             >> (ChannelControl.java:81).save         : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/channel/get/list'         >> (ChannelControl.java:117).getChannel  : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/channel/valid'            >> (ChannelControl.java:100).valid       : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/channel/initEdit'         >> (ChannelControl.java:55).initEdit     : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/admin/get'                >> (SysAdminUserControl.java:174).get    : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/admin/log/init'           >> (SysAdminUserControl.java:84).init    : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/admin/log/list'           >> (SysAdminUserControl.java:116).list   : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/admin/save'               >> (SysAdminUserControl.java:155).save   : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/admin/quit'               >> (SysAdminUserControl.java:187).quit   : ServerRedirectView | @Ok(void ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/admin/current'            >> (SysAdminUserControl.java:135).getCurrent : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/admin/login'              >> (SysAdminUserControl.java:47).userLogin : ReturnObject | @Ok(json ) @Fail(null ) | by 1 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/verify/verifyCode'        >> (VerifyCodeControl.java:22).VerifyCode : void       | @Ok(null ) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/import/save'              >> (ImportControl.java:48).save          : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/import/upload/excel'      >> (ImportControl.java:132).uploadExcel  : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/import/upload/validate'   >> (ImportControl.java:162).ValidateEntity : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/import/upload/save'       >> (ImportControl.java:236).uploadSave   : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/imgs/init'                >> (ImportImgsControl.java:40).init      : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/imgs/list'                >> (ImportImgsControl.java:68).list      : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/imgs/save'                >> (ImportImgsControl.java:124).save     : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/imgs/valid'               >> (ImportImgsControl.java:148).valid    : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/imgs/initEdit'            >> (ImportImgsControl.java:88).initEdit  : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/total/init'               >> (TotalControl.java:42).init           : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/total/list'               >> (TotalControl.java:54).list           : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.filepool.NutFilePool] - Init file-pool by: C:/Users/ycmedia/AppData/Local/Temp/tomcat-docbase.8392716078396134400.8505/tmp [2000]
[org.nutz.filepool.NutFilePool] - file-pool.home: 'C:\Users\ycmedia\AppData\Local\Temp\tomcat-docbase.8392716078396134400.8505\tmp'
[org.nutz.filepool.NutFilePool] - file-pool.cursor: 0
[org.nutz.mvc.impl.UrlMappingImpl] -    '/total/upload'             >> (TotalControl.java:144).upload        : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/total/uploadSave'         >> (TotalControl.java:173).uploadSave    : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/total/initExport'         >> (TotalControl.java:101).initExport    : ReturnObject | @Ok(json ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/total/export'             >> (TotalControl.java:126).export        : void       | @Ok(void ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.UrlMappingImpl] -    '/total/exportReport'       >> (TotalControl.java:77).exportReport   : void       | @Ok(void ) @Fail(null ) | by 2 Filters | (I:UTF-8/O:UTF-8)
[org.nutz.mvc.impl.NutLoading] - Found 41 module methods
[org.nutz.mvc.impl.NutLoading] - Localization: org.nutz.mvc.impl.NutMessageLoader('locales/')  dft<>
[org.nutz.resource.Scans] - Found 0 resource by src( locales/ ) , regex( ^.+[.]properties$ )
[org.nutz.mvc.impl.NutMessageLoader] - Load Messages in 0 resource : [[]]
[org.nutz.mvc.impl.NutMessageLoader] - Message Loaded, size = 0
[org.nutz.mvc.impl.NutLoading] - Nutz.Mvc[nutz] is up in 307ms
[org.nutz.mvc.NutFilter] - exclusionsPrefix  = ^(/webservice/|/uflo/|/druid/|/swagger/)
六月 08, 2018 10:57:26 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8505"]
[org.nutz.ioc.impl.NutIoc] - Get 'mainLauncher'<class cn.ycmedia.MainLauncher>
[org.nutz.ioc.impl.NutIoc] - 	 >> Load definition name=mainLauncher
[org.nutz.ioc.loader.combo.ComboIocLoader] - Found IocObject(mainLauncher) in AnnotationIocLoader(packages=[cn.ycmedia])
[org.nutz.ioc.impl.NutIoc] - 	 >> Make...'mainLauncher'<class cn.ycmedia.MainLauncher>
[org.nutz.ioc.impl.ScopeContext] - Save object 'mainLauncher' to [app] 
[org.nutz.ioc.aop.impl.DefaultMirrorFactory] - Load class cn.ycmedia.MainLauncher without AOP
[org.nutz.ioc.impl.NutIoc] - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[org.jboss.logging] - Logging Provider: org.jboss.logging.Log4jLoggerProvider
[org.hibernate.validator.internal.util.Version] - HV000001: Hibernate Validator 5.2.0.Alpha1
[org.hibernate.validator.internal.engine.resolver.DefaultTraversableResolver] - Cannot find javax.persistence.Persistence on classpath. Assuming non JPA 2 environment. All properties will per default be traversable.
[org.hibernate.validator.internal.xml.ValidationXmlParser] - Trying to load META-INF/validation.xml for XML based Validator configuration.
[org.hibernate.validator.internal.xml.ValidationXmlParser] - No META-INF/validation.xml found. Using annotation based configuration only.
[org.nutz.dao.jdbc.Jdbcs] - Jdbcs init complete
[org.nutz.dao.jdbc.Jdbcs] - Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure
[org.nutz.boot.NbApp] - NB started : 3963ms

额,这是windows吧,为啥说上传到linux呢?

linux启动日志也没看到有环境编码、。。。

record the date:2018-06-08 11:40:43,026log level:DEBUG
log content:Get 'whaleFilterStarter'<>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,028log level:DEBUG
log content:[NutzBoot] add filter name=whale pathSpec=/*
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,030log level:DEBUG
log content:Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,030log level:DEBUG
log content:Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:[NutzBoot] add filter name=druid pathSpec=/*
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:Get 'nutFilter'<class org.nutz.mvc.NutFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:     >> Load definition name=nutFilter
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:Found IocObject(nutFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:     >> Make...'nutFilter'<class org.nutz.mvc.NutFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,038log level:DEBUG
log content:Save object 'nutFilter' to [app] 
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,038log level:DEBUG
log content:Load class org.nutz.mvc.NutFilter without AOP
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,038log level:DEBUG
log content:Get 'nutFilterStarter'<>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,039log level:DEBUG
log content:[NutzBoot] add filter name=nutz pathSpec=/*
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,039log level:DEBUG
log content:Get 'nutFilter'<class org.nutz.mvc.NutFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,039log level:DEBUG
log content:Get 'nutFilter'<class org.nutz.mvc.NutFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,041log level:DEBUG
log content:Get 'druidWebStatServletStarter'<interface org.nutz.boot.starter.WebServletFace>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,049log level:DEBUG
log content:[NutzBoot] add servlet name=druid pathSpec=/druid/*
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,051log level:INFO
log content:druid stat view random password=q2piiv546ggtko04medabopn1a
-----------------------------------------------------------------------------------------------------------------
...skipping...
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,026log level:DEBUG
log content:Get 'whaleFilterStarter'<>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,028log level:DEBUG
log content:[NutzBoot] add filter name=whale pathSpec=/*
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,030log level:DEBUG
log content:Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,030log level:DEBUG
log content:Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:[NutzBoot] add filter name=druid pathSpec=/*
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:Get 'nutFilter'<class org.nutz.mvc.NutFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:     >> Load definition name=nutFilter
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:Found IocObject(nutFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,037log level:DEBUG
log content:     >> Make...'nutFilter'<class org.nutz.mvc.NutFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,038log level:DEBUG
log content:Save object 'nutFilter' to [app] 
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,038log level:DEBUG
log content:Load class org.nutz.mvc.NutFilter without AOP
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,038log level:DEBUG
log content:Get 'nutFilterStarter'<>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,039log level:DEBUG
log content:[NutzBoot] add filter name=nutz pathSpec=/*
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,039log level:DEBUG
log content:Get 'nutFilter'<class org.nutz.mvc.NutFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,039log level:DEBUG
log content:Get 'nutFilter'<class org.nutz.mvc.NutFilter>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,041log level:DEBUG
log content:Get 'druidWebStatServletStarter'<interface org.nutz.boot.starter.WebServletFace>
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,049log level:DEBUG
log content:[NutzBoot] add servlet name=druid pathSpec=/druid/*
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:40:43,051log level:INFO
log content:druid stat view random password=q2piiv546ggtko04medabopn1a
-----------------------------------------------------------------------------------------------------------------
...skipping...
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,627log level:DEBUG
log content:JDBC Name   --> MySQL Connector Java
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,627log level:DEBUG
log content:JDBC URL    --> jdbc:mysql://rm-2ze3c1107u1b06t5t.mysql.rds.aliyuncs.com:3306/zcdspv4?useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,638log level:DEBUG
log content:Mysql : character_set_client=utf8
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,639log level:DEBUG
log content:Mysql : character_set_connection=utf8
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,639log level:DEBUG
log content:Mysql : character_set_database=utf8
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,639log level:DEBUG
log content:Mysql : character_set_filesystem=binary
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,639log level:DEBUG
log content:Mysql : character_set_results=
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,639log level:DEBUG
log content:Mysql : character_set_server=utf8
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,639log level:DEBUG
log content:Mysql : character_set_system=utf8
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,639log level:DEBUG
log content:Mysql : character_sets_dir=
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,641log level:DEBUG
log content:Mysql : binlog_format=ROW
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,643log level:DEBUG
log content:Mysql : database=zcdspv4
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,644log level:DEBUG
log content:Mysql : user=zhicheng@10.26.120.22
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,665log level:DEBUG
log content:Database info --> MYSQL:[MySQL - 5.6.70]
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,668log level:DEBUG
log content:SELECT a.admin_id,a.admin_name,a.admin_account,a.parent_id,a.mobile_phone,a.office_phone,a.remark,a.is_active from sys_admin_user a
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,699log level:DEBUG
log content:Search mapping for [GET] path=/logs : NOT Action match
-----------------------------------------------------------------------------------------------------------------
record the date:2018-06-08 11:41:01,737log level:INFO
log content:NB started : 19754ms

一个是部署到tomcat,一个是直接运行,用了同一个war文件的样子?

没打包成war,直接jar包运行的

没有打印编码的是因为没有jetty/tomcat/undertow的starter存在, 或者日志级别设置高了

指定一下jvm编码,启动看看能不能解决

java -Dfile.encoding=UTF-8 -jar XXX.jar

不好意思。忙去了,我晚点再试试,我先把中文去掉了

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