发表于: 2017-05-23 20:36:29

1 1258


今日完成

idea替换eclipse

经过师兄安利,决定投入idea大营,下载安装包,配置maven setting.xml和库


构建maven web工程

file-new-maven-create from archetype-webapp


编写任务项目

按照实例构建项目

搭载jetty

窗口右上角edit configurations-jetty-local-设置端口-命名

点击run

[2017-05-24 12:01:43,458] Artifact demo2:war exploded: Artifact is being deployed, please wait...

2017-05-24 00:01:59.164:INFO:/demo3:Scanner-1: No Spring WebApplicationInitializer types detected on classpath

2017-05-24 00:01:59.846:INFO:/demo3:Scanner-1: Set web app root system property: 'webapp.root' = [C:\Users\syuan\Desktop\demo2\src\main\webapp]

2017-05-24 00:02:00.609:INFO:/demo3:Scanner-1: Initializing log4j from [C:\Users\syuan\Desktop\demo2\src\main\webapp\WEB-INF\classes\log4j.xml]

2017-05-24 00:02:00.618:INFO:/demo3:Scanner-1: Initializing Spring root WebApplicationContext

2017-05-24 00:02:12.138:INFO:/demo3:Scanner-1: Initializing Spring FrameworkServlet 'dispatcher'

2017-05-24 00:02:13.506:INFO:oejsh.ContextHandler:Scanner-1: Started o.e.j.w.WebAppContext@493169db{/demo3,file:/C:/Users/syuan/Desktop/demo2/src/main/webapp/,AVAILABLE}

[2017-05-24 12:02:13,631] Artifact demo2:war exploded: Artifact is deployed successfully

[2017-05-24 12:02:13,633] Artifact demo2:war exploded: Deploy took 30,174 milliseconds


找不到哪里除了问题

尝试通过eclipse启动项目,用pom配置jetty的办法,遇到了一个经典问题

INFO:oejw.StandardDescriptorProcessor:main: NO JSP Support for /demo2, did not find org.eclipse.jetty.jsp.JettyJspServlet

参考网上的做法,改ini配置,添加新的依赖还是不行。是不是一般不用jetty9?

收获

idea的配置,web项目的建立

困难

eclipse和idea都遇到了bug

明日计划

解决项目bug


返回列表 返回列表
评论

    分享到