整个项目用springboot整合ssm开发的,父工程是普通的maven项目和子工程没有依赖,子工程分别有dao,web,pojo,interface,service 用的springboot.
dao依赖pojo ,interface依赖pojo , service依赖dao interface, web依赖interface
pojo install成功了,dao 和 interface install的时候都找不到pojo,但是从mapper.interface(dao)和service.interface 引入的pojo类 那里都能点进对应的pojo.
也没有地方报错,就是install的时候报错
不是个别mapper找不到pojo 是全部都
整合后的application.properties里面都写什么百度看的写的都不太一样;到底写哪些,求大牛解答 谢谢
//dao install [ERROR] /F:/develop2/ideaworkspace/parent/dao/src/main/java/com/mapper/dressMapper.java:[3,26] 程序包com.y.pojo不存在 [ERROR] /F:/develop2/ideaworkspace/parent/dao/src/main/java/com/mapper/dressMapper.java:[4,26] 程序包com.y.pojo不存在 [ERROR] /F:/develop2/ideaworkspace/parent/dao/src/main/java/com/mapper/dressMapper.java:[10,24] 找不到符号 符号: 类 TbAddressExample 位置: 接口 com.mapper.dressMapper //interface install [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project pinyougou_sellergoods_interface: Compilation failure: Compilation failure: [ERROR] /F:/develop2/ideaworkspace/parent/interface/src/main/java/com/service/Service.java:[3,26] 程序包com.y.pojo不存在 [ERROR] /F:/develop2/ideaworkspace/parent/interface/src/main/java/com/service/BrandService.java:[17,17] 找不到符号 [ERROR] 符号: 类 TbBrand [ERROR] 位置: 接口 com.service.BrandService [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
找不到
解决方案:
启动的Application类项目的preproties,Application也需要注解