2019年4月22日
摘要: 原因 IDEA根据maven archetype的本质,其实是执行mvn archetype:generate命令,该命令执行时,需要指定一个archetype-catalog.xml文件。 该命令的参数-DarchetypeCatalog,可选值为:remote,internal ,local等, 阅读全文
posted @ 2019-04-22 23:13 smile2it 阅读(1666) 评论(0) 推荐(0) 编辑
摘要: 这段时间使用springboot搭建基础框架,作为springboot新手,各种问题都有。 当把前端框架搭建进来时,针对所有controller层的请求,所发生的异常,需要有一个统一的异常处理,然后返回错误页面。其中方法很多,可以使用拦截器,或者filter,我是使用controlleradvice 阅读全文
posted @ 2019-04-22 15:44 smile2it 阅读(23229) 评论(0) 推荐(0) 编辑