![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
执着,也是一种态度
业精于勤,荒于嬉;行成于思,毁于随
展开
-
SpringBoot通过CommandLineRunner实现参数的初始化
在上篇文章中,我们提到了通过添加监听的方式来实现参数的初始化。此外,SpringBoot还提供了另外一种参数初始化方式,实现接口 CommandLineRunner 第一步:创建实现CommandLineRunner接口的类 @Component @Order(value=1) public class StartupConfig implements CommandLineRunne原创 2017-12-22 09:58:17 · 7281 阅读 · 1 评论 -
springboot整合mybatis提示nvalid bound statement (not found)错误解决方案
最近在进行springboot和mybatis整合的时候发现项目能正常启动,但在请求数据时却一直提示nvalid bound statement (not found),在网上查了很多资料,都没能解决。如果使用的是IDEA,都是说没在配置文件中添加 #mybatis.typeAliasesPackage=com.sgcc.uap.dao #mybatis.mapperLocations=cla...原创 2019-03-04 14:24:45 · 9623 阅读 · 1 评论