springboot and mybatis
为梦而逐
这个作者很懒,什么都没留下…
展开
-
idea:java.lang.IllegalStateException: Failed to load ApplicationContext
请注意看错误中具体的caused by:java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareC...原创 2019-02-06 22:49:33 · 2028 阅读 · 0 评论 -
vs code 快速搭建SpringBoot+Mybatis+Mysql项目
vs code 官网下载:https://code.visualstudio.com/1、打开vs code后,使用快捷键Ctrl+Shift+P,新建项目工程。2、输入spring,鼠标双击选择Spring Initializr:Generate a Maven Project(使用Maven构建工程)。 3、选择项目使用的开发语言:java (鼠标双击或按enter键即可选...原创 2019-02-21 16:23:51 · 7634 阅读 · 1 评论 -
vs code调试运行(DEBUG)项目
1、使用vs code 打开项目。2、点击左边菜单栏的甲壳虫按钮。3、选择Debug调试方式:单个文件或多个整个项目或者自定义。4、点击运行按钮即可。 ...原创 2019-02-21 16:45:27 · 9396 阅读 · 0 评论 -
SpringBoot+Mybatis错误:NullPointerException
原因:测试时没有做空指针异常处理解决办法:原创 2019-02-11 09:47:41 · 2580 阅读 · 1 评论 -
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderExce
sptringBoot+Mybatis根据id查询动态查询记录时,报的错误:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error invoking SqlProvider原因:参数类型错误,更改参数id的类型就可以了...原创 2019-02-12 15:11:06 · 1516 阅读 · 0 评论