![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring boot
庸医2048
edgex foundry开发工程师
展开
-
Spring boot 第一个DEMO 运行报错
报错信息:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.导致原因:无法扫描到包解决方式: 最开始我直接配置的 @SpringBootApplication 但是这个配置无法扫描到包。所以我重新修改了变成了@SpringBo原创 2016-11-12 10:08:41 · 1166 阅读 · 0 评论 -
ArtifactTransferException: Failure to transfer --报错
问题:pom.xml中报错:ArtifactTransferException: Failure to transfer javax.persistence:persistence-api:jar:1.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will no原创 2016-11-12 22:05:30 · 3922 阅读 · 0 评论 -
从零学spring boot--集成mybatis--项目--使用注解方式
转载链接:http://412887952-qq-com.iteye.com/blog/2303121使用IDEA进行开发的:项目结构:第一步中在pom.xml加入相关的jar包。<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XML原创 2016-11-13 09:40:45 · 1923 阅读 · 0 评论 -
@SpringBootApplication扫描哪些包
@SpringBootApplication扫描哪些包我下面的知识来自《Spring Boot 实战》 作者汪云飞。Spring Boot会自动扫描@SpringBootApplication所在类的同级包,以及下级包里的所有BEAN,所以建议入口类放在最外层的包名下。原创 2016-11-30 07:21:27 · 21144 阅读 · 1 评论 -
从零学spring boot--测试
@RunWith(SpringJUnit4ClassRunner.class)@SpringApplicationConfiguration(Application.class) //读取配置文件@Transactional //确保每次测试后的数据将会被回滚public abstract class AbstractWebApplicationTests {}在junit的@Befo原创 2016-12-08 08:10:12 · 316 阅读 · 0 评论 -
UnsatisfiedDependencyException
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.lk.test.Test001': Unsatisfied dependency expressed through field 'documentsImages': No qualifying b原创 2017-07-23 11:58:33 · 3134 阅读 · 1 评论