JPA连不上数据库
原因:使用了innoDB
解决:在配置文件中加入
spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
Error creating bean with name ‘loginController’: Unsatisfied dependency expressed through field ‘userService’;
原因:
Caused by: org.springframework.data.repository.query.QueryCreationException: Could not create query for public abstract com.example.demo.bean.User
com.example.demo.dao.UserDAO.getByUserEmailAndPassword(java.lang.String,java.lang.String)! Reason: Failed to create query for method public abstract com.example.demo.bean.User
com.example.demo.dao.UserDAO.getByUserEmailAndPassword(java.lang.String,java.lang.String)! No property userEmail found for type User!; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.example.demo.bean.User
com.example.demo.dao.UserDAO.getByUserEmailAndPassword(java.lang.String,java.lang.String)! No property userEmail found for type User!
UserDAO函数命名不规范
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Input is required] with root cause
暂未解决