你好,在听完课程后,我基于现有项目进行工作流二次开发,利用adam搭建的框架,发现数据库中字段如果包含下划线,则启动时就出错了。
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.beifeng.oa.dao.UserRepository org.beifeng.oa.service.impl.UserServiceImpl.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Could not create query metamodel for method public abstract org.beifeng.oa.entity.User org.beifeng.oa.dao.UserRepository.findByEmailAndPassword(java.lang.String,java.lang.String)!