上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页
摘要: 我们一般都会在Controller上加上@Controller注解,但是有时候也见有加上@RestController的,现在就说说他们的区别: 1、不同。 @Controller类中的方法可以直接通过返回String跳转到jsp、ftl、html等模版页面。在方法上加@ResponseBody注解 阅读全文
posted @ 2018-04-19 21:36 lgp20151222 阅读(595) 评论(0) 推荐(0) 编辑
摘要: Spring框架的事务基础架构代码将默认地只在抛出运行时和unchecked exceptions时才标识事务回滚。 也就是说,当抛出个RuntimeException 或其子类例的实例时。(Errors 也一样 - 默认地 - 标识事务回滚。)从事务方法中抛出的Checked exceptions 阅读全文
posted @ 2018-04-19 21:09 lgp20151222 阅读(292) 评论(0) 推荐(0) 编辑
摘要: public ResponseBean getAreas() { String path = getClass().getClassLoader().getResource("area.json").toString(); path = path.replace("\\", "/"); if (pa 阅读全文
posted @ 2018-04-13 16:21 lgp20151222 阅读(2439) 评论(0) 推荐(0) 编辑
摘要: 其实,javascript计算时间差的方式非常简单,如果是默认的Date()类型,直接相减就是相差的毫秒数。 var d1 = new Date('2016/03/28 10:17:22'); var d2 = new Date('2016/03/28 11:17:22'); console.log 阅读全文
posted @ 2018-04-03 14:02 lgp20151222 阅读(170) 评论(0) 推荐(0) 编辑
摘要: function getNowFormatDate() { var date = new Date(); var seperator1 = "-"; var seperator2 = ":"; var month = date.getMonth() + 1; var strDate = date.g 阅读全文
posted @ 2018-04-03 14:00 lgp20151222 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 最后的解决方法: job-->configure-->Build-->Goals and options: clean package -Dmaven.repo.local=D:\dev\maven3.1.1\m2repository 在这里使用-Dmaven.repo.local,强制指定本地仓库 阅读全文
posted @ 2018-04-03 13:59 lgp20151222 阅读(970) 评论(0) 推荐(0) 编辑
摘要: org.xmlpull.v1.XmlPullParserException: only 1.0 is supported as <?xml version not '1.1' (position: START_DOCUMENT seen <?xml version=\'1.1\'... @1:19) 阅读全文
posted @ 2018-04-02 17:38 lgp20151222 阅读(7597) 评论(0) 推荐(0) 编辑
摘要: 每15分钟构建一次:H/15 * * * * 或*/15 * * * * 每天8点构建一次:0 8 * * * 每天8点~17点,两小时构建一次:0 8-17/2 * * * 周一到周五,8点~17点,两小时构建一次:0 8-17/2 * * 1-5 每月1号、15号各构建一次,除12月:H H 1 阅读全文
posted @ 2018-04-02 17:32 lgp20151222 阅读(185) 评论(0) 推荐(0) 编辑
摘要: rm * 文件名rm -r */ 文件夹rm -rf * 文件夹或文件名 -r 代表文件夹之下的都删除掉 -f 代表暴力删除,无需确认直接删完 阅读全文
posted @ 2018-04-02 17:27 lgp20151222 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <!-- 热部署模块 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </depe 阅读全文
posted @ 2018-04-02 17:22 lgp20151222 阅读(92) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页