Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

创建名为“entityManagerFactory”的bean时出错,该bean在类路径资源[org/springframework/boot/autoconfig/om/jpa/Hibernate JpaConfiguration.class]中定义:初始化方法调用失败;嵌套异常为javax.persistence.PersistenceException: #41

Open
tianmingqq opened this issue Feb 24, 2023 · 1 comment

Comments

@tianmingqq
Copy link

Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.exception.GenericJDBCException: Unable to open JDBC Connection for DDL execution

报了这个错,请问怎么解决呢?我问了下开发的同事,说是连接不上mysql,我MySQL是dockers启动的

@shuqian2017
Copy link

他的shell脚本没做好兼容,你这应该是sed修改mysql的IP没有成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants