![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
有小同志的老同志
Hello 小同志
展开
-
《spring boot 集成mybatis 出现Invalid bound statement (not found)错误》
spring boot 集成mybatis的时候出现了如下错误:Invalid bound statement (not found)org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.ibatis.binding...原创 2018-10-26 15:18:43 · 243 阅读 · 0 评论 -
《springboot和mybatis项目使用枚举转换器出现No enum constant及解决方法》
mybatis枚举转换器参见此篇博客。我们知道写好了枚举转换器以后,可以在xxxMapper.xml中配置handler,如下: <result column="type" property="personEnum" typeHandler="com.db.enumhandler.PersonTypeHandler"/>也可以在mybatis-config.xml中进行配...原创 2018-10-30 17:55:29 · 25188 阅读 · 2 评论 -
Mybatis与springboot项目启动时出现Field XXX in com.xxx that could not be found
Mybatis与springboot项目,启动时报错,详细的错误如下:Field xxx in com.xxxl required a bean of type ‘xxx’ that could not be found.Action:Consider defining a bean of type ‘xxx’ in your configuration.原因是bean装配失败,spri...原创 2018-11-15 15:40:55 · 7644 阅读 · 0 评论 -
SpringBoot项目启动报错missing EmbeddedServletContainerFactory bean
详细报错如下:Caused by: org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.在pom.xml添加如下依赖即可:<de...原创 2018-12-18 17:34:14 · 5579 阅读 · 0 评论 -
SpringBoot整合Jpa启动出错
错误信息如下:If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.在pom中加入H2 Database依赖即可,如下:<dependency> <groupId>com.h2database</groupId> <art...原创 2019-05-23 16:01:09 · 906 阅读 · 1 评论 -
SpringBoot项目maven命令打包时报错
错误如下:Unable to find a single main class from the following candidates详细如下:Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.2.0.M4:repackage (default) on project demo-rpc-...原创 2019-06-25 19:48:15 · 1423 阅读 · 0 评论