NutzCN Logo
精华 nutzboot- 怎么更换server
发布于 295天前 作者 蛋蛋的忧伤 393 次浏览 复制 上一个帖子 下一个帖子
标签: nutzboot

我download下的是jetty的,我想改成tomcat的,但就是改不了.....
pom.xml

<dependencies>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter</artifactId>
			<version>${nutzboot.version}</version>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-tomcat</artifactId>
			<version>${nutzboot.version}</version>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-nutz-mvc</artifactId>
			<version>${nutzboot.version}</version>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-nutz-dao</artifactId>
			<version>${nutzboot.version}</version>
		</dependency>
		<dependency>
			<groupId>org.nutz</groupId>
			<artifactId>nutzboot-starter-jdbc</artifactId>
			<version>${nutzboot.version}</version>
		</dependency>
		<dependency>
			<groupId>com.alibaba</groupId>
			<artifactId>druid</artifactId>
			<version>1.1.5</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>${slf4j.version}</version>
		</dependency>
		<dependency>
			<groupId>com.h2database</groupId>
			<artifactId>h2</artifactId>
			<version>1.4.196</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${junit.version}</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

application.properties

tomcat.port=8080
tomcat.host=0.0.0.0



jdbc.type=druid
jdbc.url=jdbc:h2:mem:~
jdbc.username=root
jdbc.password=root

MainLauncher:

@IocBean(create="init", depose="depose")
public class MainLauncher {
    
    @Inject
    protected PropertiesProxy conf;
    
    @At("/")
    @Ok("->:/index2.html")
    public void index() {}

    @At("/index2")
    @Ok("->:/index.html")
    public void index2(){

    }

	public void init() {}
	public void depose() {}

    public static void main(String[] args) throws Exception {
        new NbApp(MainLauncher.class).run();
    }

}

启动日志.....

"C:\Program Files\Java\jdk1.8.0_151\bin\java" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.5\lib\idea_rt.jar=50715:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.5\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_151\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_151\jre\lib\rt.jar;C:\Users\Administrator\Desktop\nb-demo\target\classes;D:\Dev\apache-maven-3.5.0\repository\org\nutz\nutzboot-starter\2.0-SNAPSHOT\nutzboot-starter-2.0-SNAPSHOT.jar;D:\Dev\apache-maven-3.5.0\repository\org\nutz\nutz\1.r.65-SNAPSHOT\nutz-1.r.65-20171222.070900-47.jar;D:\Dev\apache-maven-3.5.0\repository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;D:\Dev\apache-maven-3.5.0\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\Dev\apache-maven-3.5.0\repository\org\nutz\nutzboot-starter-jetty\2.0-SNAPSHOT\nutzboot-starter-jetty-2.0-SNAPSHOT.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-servlets\9.4.8.v20171121\jetty-servlets-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-continuation\9.4.8.v20171121\jetty-continuation-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-http\9.4.8.v20171121\jetty-http-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-util\9.4.8.v20171121\jetty-util-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-io\9.4.8.v20171121\jetty-io-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-webapp\9.4.8.v20171121\jetty-webapp-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-xml\9.4.8.v20171121\jetty-xml-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-servlet\9.4.8.v20171121\jetty-servlet-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-security\9.4.8.v20171121\jetty-security-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-server\9.4.8.v20171121\jetty-server-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\websocket\websocket-server\9.4.8.v20171121\websocket-server-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\websocket\websocket-common\9.4.8.v20171121\websocket-common-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\websocket\websocket-api\9.4.8.v20171121\websocket-api-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\websocket\websocket-client\9.4.8.v20171121\websocket-client-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-client\9.4.8.v20171121\jetty-client-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\websocket\websocket-servlet\9.4.8.v20171121\websocket-servlet-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\websocket\javax-websocket-server-impl\9.4.8.v20171121\javax-websocket-server-impl-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-annotations\9.4.8.v20171121\jetty-annotations-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\jetty-plus\9.4.8.v20171121\jetty-plus-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\javax\annotation\javax.annotation-api\1.2\javax.annotation-api-1.2.jar;D:\Dev\apache-maven-3.5.0\repository\org\ow2\asm\asm\6.0\asm-6.0.jar;D:\Dev\apache-maven-3.5.0\repository\org\ow2\asm\asm-commons\6.0\asm-commons-6.0.jar;D:\Dev\apache-maven-3.5.0\repository\org\ow2\asm\asm-tree\6.0\asm-tree-6.0.jar;D:\Dev\apache-maven-3.5.0\repository\org\eclipse\jetty\websocket\javax-websocket-client-impl\9.4.8.v20171121\javax-websocket-client-impl-9.4.8.v20171121.jar;D:\Dev\apache-maven-3.5.0\repository\javax\websocket\javax.websocket-client-api\1.0\javax.websocket-client-api-1.0.jar;D:\Dev\apache-maven-3.5.0\repository\javax\websocket\javax.websocket-api\1.0\javax.websocket-api-1.0.jar;D:\Dev\apache-maven-3.5.0\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\Dev\apache-maven-3.5.0\repository\org\nutz\nutz-plugins-websocket\1.r.65-SNAPSHOT\nutz-plugins-websocket-1.r.65-20171224.132538-24.jar;D:\Dev\apache-maven-3.5.0\repository\org\nutz\nutzboot-starter-nutz-mvc\2.0-SNAPSHOT\nutzboot-starter-nutz-mvc-2.0-SNAPSHOT.jar;D:\Dev\apache-maven-3.5.0\repository\org\nutz\nutzboot-starter-nutz-dao\2.0-SNAPSHOT\nutzboot-starter-nutz-dao-2.0-SNAPSHOT.jar;D:\Dev\apache-maven-3.5.0\repository\org\nutz\nutz-plugins-daocache\1.r.65-SNAPSHOT\nutz-plugins-daocache-1.r.65-20171224.131549-24.jar;D:\Dev\apache-maven-3.5.0\repository\org\nutz\nutzboot-starter-jdbc\2.0-SNAPSHOT\nutzboot-starter-jdbc-2.0-SNAPSHOT.jar;D:\Dev\apache-maven-3.5.0\repository\com\alibaba\druid\1.1.5\druid-1.1.5.jar;D:\Dev\apache-maven-3.5.0\repository\org\slf4j\slf4j-log4j12\1.7.25\slf4j-log4j12-1.7.25.jar;D:\Dev\apache-maven-3.5.0\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:\Dev\apache-maven-3.5.0\repository\com\h2database\h2\1.4.196\h2-1.4.196.jar" io.nutz.demo.MainLauncher
[INFO ] 13:38:11.941 org.nutz.boot.banner.SimpleBannerPrinter.printBanner(SimpleBannerPrinter.java:34) - 
 _   _ ______                                      ___   
| \ | || ___ \  ______ ______ ______ ______ ______| \ \  
|  \| || |_/ / |______|______|______|______|______| |\ \ 
| . ` || ___ \  ______ ______ ______ ______ ______| | > >
| |\  || |_/ / |______|______|______|______|______| |/ / 
\_| \_/\____/                                     |_/_/  
  
:: Nutz Boot ::   (2.0-SNAPSHOT)
[DEBUG] 13:38:12.025 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=67 time use 74ms
[DEBUG] 13:38:12.034 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( custom/ ) , regex( ^.+[.]properties$ )
[DEBUG] 13:38:12.035 org.nutz.ioc.impl.PropertiesProxy.setPaths(PropertiesProxy.java:114) - load properties from jar:file:/D:/Dev/apache-maven-3.5.0/repository/org/nutz/nutzboot-starter/2.0-SNAPSHOT/nutzboot-starter-2.0-SNAPSHOT.jar!/custom/emtry.properties
[DEBUG] 13:38:12.067 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
[DEBUG] 13:38:12.067 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:49) - loading [emtry.json]
[DEBUG] 13:38:12.068 org.nutz.ioc.loader.json.JsonLoader.<init>(JsonLoader.java:57) - Loaded 0 bean define from path=[ioc/] --> []
[DEBUG] 13:38:12.106 org.nutz.castor.Castors.reload(Castors.java:115) - Using 95 castor for Castors
[DEBUG] 13:38:12.121 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
[INFO ] 13:38:12.128 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) -  > scan 'io.nutz.demo'
[DEBUG] 13:38:12.133 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( io/nutz/demo/ ) , regex( ^.+[.]class$ )
[INFO ] 13:38:12.135 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'mainLauncher                            ' - io.nutz.demo.MainLauncher
[INFO ] 13:38:12.141 org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:50) -  > scan 'org.nutz.boot.starter'
[DEBUG] 13:38:12.146 org.nutz.resource.Scans.scan(Scans.java:280) - Found 15 resource by src( org/nutz/boot/starter/ ) , regex( ^.+[.]class$ )
[INFO ] 13:38:12.156 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'jettyStarter                            ' - org.nutz.boot.starter.jetty.JettyStarter
[INFO ] 13:38:12.168 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'nutFilterStarter                        ' - org.nutz.boot.starter.nutz.mvc.NutFilterStarter
[DEBUG] 13:38:12.175 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutFilterStarter.createNutFilter(...) define as name=nutFilter
[INFO ] 13:38:12.176 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'whaleFilterStarter                      ' - org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter
[DEBUG] 13:38:12.178 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : WhaleFilterStarter.createNutFilter(...) define as name=whaleFilter
[INFO ] 13:38:12.184 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'nutDaoStarter                           ' - org.nutz.boot.starter.nutz.dao.NutDaoStarter
[DEBUG] 13:38:12.193 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutDaoStarter.getSqlManager(...) define as name=sqlManager
[DEBUG] 13:38:12.195 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutDaoStarter.getDao(...) define as name=dao
[DEBUG] 13:38:12.198 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutDaoStarter.createCacheSerializer(...) define as name=daoCacheSerializer
[DEBUG] 13:38:12.198 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : NutDaoStarter.createDaoCacheInterceptor(...) define as name=daoCacheInterceptor
[INFO ] 13:38:12.199 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'druidWebStatServletStarter              ' - org.nutz.boot.starter.jdbc.DruidWebStatServletStarter
[INFO ] 13:38:12.200 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'druidWebStatFilterStarter               ' - org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter
[INFO ] 13:38:12.200 org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:98) -    > add 'dataSourceStarter                       ' - org.nutz.boot.starter.jdbc.DataSourceStarter
[DEBUG] 13:38:12.204 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : DataSourceStarter.createDruidDataSource(...) define as name=druidDataSource
[DEBUG] 13:38:12.204 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : DataSourceStarter.createHikariCPDataSource(...) define as name=hikariDataSource
[DEBUG] 13:38:12.204 org.nutz.ioc.loader.annotation.AnnotationIocLoader.handleIocBeanMethod(AnnotationIocLoader.java:246) - Found @IocBean method : DataSourceStarter.getDataSource(...) define as name=dataSource
[DEBUG] 13:38:12.206 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:342) - Found jar:file:/D:/Dev/apache-maven-3.5.0/repository/org/nutz/nutzboot-starter-jetty/2.0-SNAPSHOT/nutzboot-starter-jetty-2.0-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 13:38:12.207 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:342) - Found jar:file:/D:/Dev/apache-maven-3.5.0/repository/org/nutz/nutzboot-starter-nutz-mvc/2.0-SNAPSHOT/nutzboot-starter-nutz-mvc-2.0-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 13:38:12.207 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:342) - Found jar:file:/D:/Dev/apache-maven-3.5.0/repository/org/nutz/nutzboot-starter-nutz-dao/2.0-SNAPSHOT/nutzboot-starter-nutz-dao-2.0-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[DEBUG] 13:38:12.208 org.nutz.boot.NbApp.prepareStarterClassList(NbApp.java:342) - Found jar:file:/D:/Dev/apache-maven-3.5.0/repository/org/nutz/nutzboot-starter-jdbc/2.0-SNAPSHOT/nutzboot-starter-jdbc-2.0-SNAPSHOT.jar!/META-INF/nutz/org.nutz.boot.starter.NbStarter
[INFO ] 13:38:12.225 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:137) - ... NutIoc init complete
[DEBUG] 13:38:12.225 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'appContext' to [app] 
[DEBUG] 13:38:12.226 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'conf' to [app] 
[DEBUG] 13:38:12.227 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'nbApp' to [app] 
[DEBUG] 13:38:12.228 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'jettyStarter'<class org.nutz.boot.starter.jetty.JettyStarter>
[DEBUG] 13:38:12.229 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
[DEBUG] 13:38:12.230 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=$aop_async
[DEBUG] 13:38:12.231 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject($aop_async) in AsyncAopIocLoader@2054574951
[DEBUG] 13:38:12.231 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
[DEBUG] 13:38:12.231 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object '$aop_async' to [app] 
[DEBUG] 13:38:12.243 org.nutz.ioc.aop.SimpleAopMaker.<init>(SimpleAopMaker.java:79) - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
[DEBUG] 13:38:12.244 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=jettyStarter
[DEBUG] 13:38:12.245 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(jettyStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 13:38:12.245 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'jettyStarter'<class org.nutz.boot.starter.jetty.JettyStarter>
[DEBUG] 13:38:12.246 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'jettyStarter' to [app] 
[DEBUG] 13:38:12.247 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.boot.starter.jetty.JettyStarter without AOP
[DEBUG] 13:38:12.312 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 13:38:12.313 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'nutFilterStarter'<class org.nutz.boot.starter.nutz.mvc.NutFilterStarter>
[DEBUG] 13:38:12.314 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=nutFilterStarter
[DEBUG] 13:38:12.314 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(nutFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 13:38:12.314 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'nutFilterStarter'<class org.nutz.boot.starter.nutz.mvc.NutFilterStarter>
[DEBUG] 13:38:12.314 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'nutFilterStarter' to [app] 
[DEBUG] 13:38:12.316 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.boot.starter.nutz.mvc.NutFilterStarter without AOP
[DEBUG] 13:38:12.322 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 13:38:12.323 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'whaleFilterStarter'<class org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter>
[DEBUG] 13:38:12.323 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=whaleFilterStarter
[DEBUG] 13:38:12.324 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(whaleFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 13:38:12.324 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'whaleFilterStarter'<class org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter>
[DEBUG] 13:38:12.324 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'whaleFilterStarter' to [app] 
[DEBUG] 13:38:12.325 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.boot.starter.nutz.mvc.WhaleFilterStarter without AOP
[DEBUG] 13:38:12.330 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 13:38:12.330 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'nutDaoStarter'<class org.nutz.boot.starter.nutz.dao.NutDaoStarter>
[DEBUG] 13:38:12.330 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=nutDaoStarter
[DEBUG] 13:38:12.330 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(nutDaoStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 13:38:12.331 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'nutDaoStarter'<class org.nutz.boot.starter.nutz.dao.NutDaoStarter>
[DEBUG] 13:38:12.331 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'nutDaoStarter' to [app] 
[DEBUG] 13:38:12.331 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.boot.starter.nutz.dao.NutDaoStarter without AOP
[DEBUG] 13:38:12.335 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 13:38:12.336 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'dataSourceStarter'<class org.nutz.boot.starter.jdbc.DataSourceStarter>
[DEBUG] 13:38:12.336 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=dataSourceStarter
[DEBUG] 13:38:12.336 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(dataSourceStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 13:38:12.336 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'dataSourceStarter'<class org.nutz.boot.starter.jdbc.DataSourceStarter>
[DEBUG] 13:38:12.337 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'dataSourceStarter' to [app] 
[DEBUG] 13:38:12.337 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.boot.starter.jdbc.DataSourceStarter without AOP
[DEBUG] 13:38:12.340 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 13:38:12.340 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'druidWebStatFilterStarter'<class org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter>
[DEBUG] 13:38:12.341 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=druidWebStatFilterStarter
[DEBUG] 13:38:12.341 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(druidWebStatFilterStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 13:38:12.341 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'druidWebStatFilterStarter'<class org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter>
[DEBUG] 13:38:12.341 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'druidWebStatFilterStarter' to [app] 
[DEBUG] 13:38:12.342 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.boot.starter.jdbc.DruidWebStatFilterStarter without AOP
[DEBUG] 13:38:12.345 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[DEBUG] 13:38:12.346 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'druidWebStatServletStarter'<class org.nutz.boot.starter.jdbc.DruidWebStatServletStarter>
[DEBUG] 13:38:12.346 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=druidWebStatServletStarter
[DEBUG] 13:38:12.346 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(druidWebStatServletStarter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 13:38:12.347 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'druidWebStatServletStarter'<class org.nutz.boot.starter.jdbc.DruidWebStatServletStarter>
[DEBUG] 13:38:12.347 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'druidWebStatServletStarter' to [app] 
[DEBUG] 13:38:12.348 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.boot.starter.jdbc.DruidWebStatServletStarter without AOP
[DEBUG] 13:38:12.351 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[INFO ] 13:38:12.366 org.eclipse.jetty.util.log.Log.initialized(Log.java:192) - Logging initialized @868ms to org.eclipse.jetty.util.log.Slf4jLog
[DEBUG] 13:38:12.721 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( io/nutz/demo/ ) , regex( ^.+[.]class$ )
[INFO ] 13:38:12.751 org.nutz.boot.starter.jdbc.DruidWebStatServletStarter.getInitParameters(DruidWebStatServletStarter.java:73) - druid stat view random password=3a5vbq6ss6i88ofat22vhkm0bb
[DEBUG] 13:38:12.752 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[DEBUG] 13:38:12.752 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=whaleFilter
[DEBUG] 13:38:12.753 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(whaleFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 13:38:12.753 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[DEBUG] 13:38:12.753 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'whaleFilter' to [app] 
[DEBUG] 13:38:12.754 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.mvc.WhaleFilter without AOP
[DEBUG] 13:38:12.755 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'whaleFilterStarter'<>
[DEBUG] 13:38:12.757 org.nutz.boot.starter.jetty.JettyStarter.addFilter(JettyStarter.java:219) - add filter name=whale pathSpec=/*
[DEBUG] 13:38:12.757 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'whaleFilter'<class org.nutz.mvc.WhaleFilter>
[DEBUG] 13:38:12.761 org.nutz.boot.starter.jetty.JettyStarter.addFilter(JettyStarter.java:219) - add filter name=druid pathSpec=/*
[DEBUG] 13:38:12.761 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'nutFilter'<class org.nutz.mvc.NutFilter>
[DEBUG] 13:38:12.761 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=nutFilter
[DEBUG] 13:38:12.761 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(nutFilter) in AnnotationIocLoader(packages=[org.nutz.boot.starter])
[DEBUG] 13:38:12.761 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'nutFilter'<class org.nutz.mvc.NutFilter>
[DEBUG] 13:38:12.762 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'nutFilter' to [app] 
[DEBUG] 13:38:12.763 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class org.nutz.mvc.NutFilter without AOP
[DEBUG] 13:38:12.763 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'nutFilterStarter'<>
[DEBUG] 13:38:12.763 org.nutz.boot.starter.jetty.JettyStarter.addFilter(JettyStarter.java:219) - add filter name=nutz pathSpec=/*
[DEBUG] 13:38:12.763 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'nutFilter'<class org.nutz.mvc.NutFilter>
[INFO ] 13:38:12.765 org.eclipse.jetty.server.Server.doStart(Server.java:373) - jetty-9.4.8.v20171121, build timestamp: 2017-11-22T05:27:37+08:00, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8
[INFO ] 13:38:12.929 org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations(AnnotationConfiguration.java:486) - Scanning elapsed time=0ms
[INFO ] 13:38:12.934 org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitServlet(StandardDescriptorProcessor.java:281) - NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
[INFO ] 13:38:12.947 org.eclipse.jetty.server.session.DefaultSessionIdManager.doStart(DefaultSessionIdManager.java:364) - DefaultSessionIdManager workerName=node0
[INFO ] 13:38:12.947 org.eclipse.jetty.server.session.DefaultSessionIdManager.doStart(DefaultSessionIdManager.java:369) - No SessionScavenger set, using defaults
[INFO ] 13:38:12.951 org.eclipse.jetty.server.session.HouseKeeper.startScavenging(HouseKeeper.java:149) - Scavenging every 660000ms
[INFO ] 13:38:12.977 org.nutz.mvc.NutFilter._init(NutFilter.java:85) - NutFilter[nutz] starting ...
[DEBUG] 13:38:12.981 org.nutz.resource.Scans.printLocations(Scans.java:527) - Locations count=68 time use 1ms
[DEBUG] 13:38:12.982 org.nutz.mvc.config.AbstractNutConfig.createLoading(AbstractNutConfig.java:66) - Loading by class org.nutz.boot.starter.nutz.mvc.NbMvcLoading
[INFO ] 13:38:12.987 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nutz Version : 1.r.65-SNAPSHOT 
[INFO ] 13:38:12.987 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nutz.Mvc[nutz] is initializing ...
[DEBUG] 13:38:12.988 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:60) - Web Container Information:
[DEBUG] 13:38:12.988 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:61) -  - Default Charset : UTF-8
[DEBUG] 13:38:12.989 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:62) -  - Current . path  : C:\Users\Administrator\Desktop\nb-demo\.
[DEBUG] 13:38:12.989 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:63) -  - Java Version    : 1.8.0_151
[DEBUG] 13:38:12.989 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:64) -  - File separator  : \
[DEBUG] 13:38:12.989 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:65) -  - Timezone        : Asia/Shanghai
[DEBUG] 13:38:12.989 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:66) -  - OS              : Windows 7 amd64
[DEBUG] 13:38:12.989 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:67) -  - ServerInfo      : jetty/9.4.8.v20171121
[DEBUG] 13:38:12.989 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:68) -  - Servlet API     : 3.1
[DEBUG] 13:38:12.989 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:73) -  - ContextPath     : 
[DEBUG] 13:38:12.990 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:74) -  - context.tempdir : C:\Users\Administrator\AppData\Local\Temp\jetty.325607403953315752.8080
[DEBUG] 13:38:12.990 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:75) -  - MainModule      : io.nutz.demo.MainLauncher
[INFO ] 13:38:12.990 org.nutz.mvc.config.AbstractNutConfig.getAppRoot(AbstractNutConfig.java:81) - /WEB-INF/ not Found?!
[DEBUG] 13:38:12.990 org.nutz.mvc.impl.NutLoading.createContext(NutLoading.java:239) - >> app.root = 
[INFO ] 13:38:12.993 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:159) - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[DEBUG] 13:38:12.995 org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:369) - @Views(DefaultViewMaker.class)
[DEBUG] 13:38:12.998 org.nutz.mvc.impl.NutLoading.createChainMaker(NutLoading.java:267) - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
[DEBUG] 13:38:13.004 org.nutz.mvc.impl.Loadings.scanModules(Loadings.java:158) - module class location 'file:/C:/Users/Administrator/Desktop/nb-demo/target/classes/'
[DEBUG] 13:38:13.004 org.nutz.mvc.impl.Loadings.scanModuleInPackage(Loadings.java:188) -  > scan 'io.nutz.demo'
[DEBUG] 13:38:13.007 org.nutz.resource.Scans.scan(Scans.java:280) - Found 1 resource by src( io/nutz/demo/ ) , regex( ^.+[.]class$ )
[DEBUG] 13:38:13.008 org.nutz.mvc.impl.Loadings.checkModule(Loadings.java:203) -    >> add 'io.nutz.demo.MainLauncher'
[DEBUG] 13:38:13.009 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:196) - Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
[INFO ] 13:38:13.022 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.integration.shiro.NutShiroProcessor
[INFO ] 13:38:13.029 org.nutz.mvc.impl.NutActionChainMaker.getProcessorByName(NutActionChainMaker.java:72) - Optional processor class not found, disabled : org.nutz.plugins.validation.ValidationProcessor
[DEBUG] 13:38:13.042 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) -    '/'                         >> (MainLauncher.java:35).index          : void       | @Ok(->:/index2.html) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[DEBUG] 13:38:13.042 org.nutz.mvc.impl.UrlMappingImpl.print(UrlMappingImpl.java:146) -    '/index2'                   >> (MainLauncher.java:41).index2         : void       | @Ok(->:/index.html) @Fail(null ) | by 0 Filters | (I:UTF-8/O:UTF-8)
[INFO ] 13:38:13.043 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:221) - Found 2 module methods
[DEBUG] 13:38:13.043 org.nutz.mvc.impl.NutLoading.evalLocalization(NutLoading.java:307) - Localization: org.nutz.mvc.impl.NutMessageLoader('locales/')  dft<>
[DEBUG] 13:38:13.047 org.nutz.resource.Scans.scan(Scans.java:280) - Found 0 resource by src( locales/ ) , regex( ^.+[.]properties$ )
[DEBUG] 13:38:13.047 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:27) - Load Messages in 0 resource : [[]]
[DEBUG] 13:38:13.047 org.nutz.mvc.impl.NutMessageLoader.load(NutMessageLoader.java:95) - Message Loaded, size = 0
[INFO ] 13:38:13.048 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) - Nutz.Mvc[nutz] is up in 58ms
[INFO ] 13:38:13.049 org.nutz.mvc.NutFilter._init(NutFilter.java:117) - exclusionsPrefix  = ^(/uflo/|/druid/|/swagger/)
[INFO ] 13:38:13.068 org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:788) - Started o.e.j.w.WebAppContext@2b48a640{/,[],AVAILABLE}
[INFO ] 13:38:13.093 org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:288) - Started ServerConnector@3232a28a{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
[INFO ] 13:38:13.093 org.eclipse.jetty.server.Server.doStart(Server.java:410) - Started @1597ms
[DEBUG] 13:38:13.094 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'mainLauncher'<class io.nutz.demo.MainLauncher>
[DEBUG] 13:38:13.094 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:199) - 	 >> Load definition name=mainLauncher
[DEBUG] 13:38:13.094 org.nutz.ioc.loader.combo.ComboIocLoader.printFoundIocBean(ComboIocLoader.java:197) - Found IocObject(mainLauncher) in AnnotationIocLoader(packages=[io.nutz.demo])
[DEBUG] 13:38:13.094 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:230) - 	 >> Make...'mainLauncher'<class io.nutz.demo.MainLauncher>
[DEBUG] 13:38:13.094 org.nutz.ioc.impl.ScopeContext.save(ScopeContext.java:64) - Save object 'mainLauncher' to [app] 
[DEBUG] 13:38:13.095 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:70) - Load class io.nutz.demo.MainLauncher without AOP
[DEBUG] 13:38:13.099 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:173) - Get 'conf'<class org.nutz.ioc.impl.PropertiesProxy>
[INFO ] 13:38:13.100 org.nutz.boot.NbApp._run(NbApp.java:195) - NB started : 1425ms

为啥还是ServerInfo : jetty/9.4.8.v20171121

12 回复

clean了,target目录确认没了重新编译的

有点蒙,是我pom里面引入tomcat的starter就使用tomcat启动,pom里是jetty就使用使用jetty启动嘛?

看看依赖树

没有jetty的痕迹

对呀.....所以这是什么鬼情况....

命令行下试试吧,也许是idea的某种问题吧

应该怎么执行呢..我用maven打成jar包了...

C:\Users\Administrator\Desktop\nb-demo\target>java demo.jar
错误: 找不到或无法加载主类 demo.jar

知道了....
java -jar demo.jar

命令行启动识别出

ServerInfo      : Apache Tomcat/8.5.24

好坑.....

在 Idea中找到菜单 File->Invalidate Caches / Restart... 然后 Invalidate and Restart 后重启再启动也识别出了 ServerInfo : Apache Tomcat/8.5.24. (记录一下)

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