Error creating bean with name 'autoWorkController': Unsatisfied dependency expressed through field 'jdbcRouteRepository':
Error creating bean with name 'jdbcRouteRepository' defined in com.chint.infrastructure.repository.jdbc.JdbcRouteRepository
defined in @EnableJdbcRepositories declared on JdbcRepositoriesRegistrar.EnableJdbcRepositoriesConfiguration: Could not create
query for public abstract org.springframework.data.domain.Page com.chint.infrastructure.repository.jdbc.JdbcRouteRepository.
findAllByXXXX(java.lang.String,java.lang.String,org.springframework.data.domain.Pageable);
Reason: No property 'XXX' found on class com.chint.domain.aggregates.order.RouteOrder; Did you mean: XXX,XXX
以上异常是因为Springboot Data Jdbc注入时会检查Repository中的find方法,即使方法未调用也会检查,特此记录
解决方法:
修改语句或者删除即可
标签:chint,domain,Jdbc,Springboot,Data,autoWorkController From: https://www.cnblogs.com/nxjblog/p/18191088