摘要: 1、eclipse--创建maven项目--选择打包方式为war 2、此时项目还缺少一些东西,比如web-inf,web.xml配置文件之类的 3、项目右键-properties-project facets,将动态网页勾选去掉,保存,重进project facets,再次勾选,并且在下方出现新的蓝 阅读全文
posted @ 2017-04-21 09:41 Zepx 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1、maven中创建web项目后jsp可能会报错,因为其没有相关的依赖(包),和自带的动态网页项目创建不一样。所以在配置文件中要添加相关的依赖,比如servlet的 2、项目右键-maven-update project,通常在修改pom.xml后使用 3、项目右键-properties-proje 阅读全文
posted @ 2017-04-21 09:36 Zepx 阅读(265) 评论(0) 推荐(0) 编辑
摘要: spring boot需要一个启动类 比如 Servlet类所在的包路径必须是BlogApplication所在的包路径的子路径才能被扫描到,否则需要通过basePackages属性指定Servlet类所在的包。 2、让Spring Boot项目支持热部署,在maven配置文件添加如下依赖: 阅读全文
posted @ 2017-04-21 09:32 Zepx 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 1 3 4 5 rows = aa.query(dbid,sql,null); 15 String email=""; 16 for (TableRow row : rows){ 17 email=row.getField("email",""); 18 email=Utility.checkEmail(email)?email:""; 19 sb.app... 阅读全文
posted @ 2017-03-07 17:23 Zepx 阅读(280) 评论(0) 推荐(0) 编辑