异常记录
异常说明: spring boot 链接 sql server 报错 Could not open JPA EntityManager for transaction; 带有空指针异常 以及Activiti 异常
错误分析 : 这个错误的产生极大可能是软件版本差异导致错误
环境说明:SQLServer 2008 R2 版本 spring boot 2.3.5
配置文件无误
spring.jpa.database=SQL_SERVER
spring.jpa.show-sql=true
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.database-platform=org.hibernate.dialect.SQLServer2008Dialect
解决方法
重新安装SQLServer 2008 (不带R2版的)
本文探讨了SpringBoot应用连接SQLServer时遇到的CouldnotopenJPAEntityManagerfortransaction异常,特别关注空指针问题及Activiti异常。作者指出可能由版本不匹配引起,并提供了重装SQLServer但排除R2版本的解决建议。
882

被折叠的 条评论
为什么被折叠?



