错误截图 后面发现原来和入口类代码有关. //@SpringBootApplication(scanBasePackages = {"org.jzc.odata.cboard","org.jzc.odata.cboard.odataservice","com.sdl.odata.api.service","com.sdl.odata.api.service.ODataService"}) @EnableAutoConfigur…
1.完整报错 *************************** APPLICATION FAILED TO START *************************** Description: Field relTelBillRecordRepository in com.xx.service.TelParseService required a bean of type 'com.xx.repository.IRelTelBillRecordRepository' that co…
TClientDataSet 提交时提示 Field value Required 但是未提示具体哪个字段. 这个错误特别麻烦,要使用 midas 控件时,虽然很方便.但是出错了根本找不到原因,特别是这个异常.下面的补丁,可以帮助找到错误原因. 注:我们自己在使用的时候,采用了控件继承,因此可以把这个功能变成控件基本功能,但是继承相关代码特别多,就不在这里贴了. procedure postAndCheckValue(ds: TDataSet); var I: Integer; curField…
报错信息: 2018-06-25 14:26:17.103  WARN 49752 --- [  restartedMain] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyExcept…
场景 在IDEA中新建SpringBoot项目后,修改了默认的Maven仓库和配置文件,然后在启动项目时提示: Error:java: 读取\org\assertj\assertj-core\3.11.1\assertj-core-3.11.1.jar时出错; 博客: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书.教程推送与免费下载. 实现 根据具体报错的信息到对应的Maven仓库对应的路径下将其删除, 这里对应…
场景 在IDEA中新建SpringBoot项目,后启动项目时提示: Error:(3, 32) java: 程序包org.springframework.boot不存在 实现 将pom.xml中parent依赖版本降低,这里改为2.1.6,然后在右边Maven面板中点击Reimport All Maven  Projects…
先写了JUnit,发现启动不了,注释掉有问题的service也不可以.可能是因为spring开始时会加载所有service吧. 按照网友们的说法,一般需要检查: 1.入口类有没有写MapperScan 我写了,没问题:) @MapperScan(basePackages="com.example.demo.mapper") 2.该service对应的dao接口上没写@Mapper 我写了,没问题:) 3.@Service里的字符串与该service名称不一致 由于我这个service是…
0 环境 系统:win10 1 正文 https://stackoverflow.com/questions/44474367/field-in-com-xxx-required-a-bean-of-type-that-could-not-be-found 没有解决我的问题 搜了其他人的解释 说是包错误什么的 我看了一下 包没有问题 那就是bean错误 debug了一下 发现我直接copy的类名(类如User) 开头小写即可(user)…
运行springboot项目报错: *************************** APPLICATION FAILED TO START *************************** Description: Field userMapper in com.whohim.springboot.service.impl.UserServiceImpl required a bean of type 'com.whohim.springboot.dao.UserMapper' t…
myeclipse2015不能启动tomcat,提示: Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you wil…