一、前言
- 记录下工作中遇到的问题。
- 使用这些技术和国产达梦数据连接时遇到的错误。
二、错误
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Unsatisfied dependency expressed through method 'entityManagerFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactoryBuilder' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Unsatisfied dependency expressed through method 'entityManagerFactoryBuilder' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaVendorAdapter' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.JpaVendorAdapter]: Factory method 'jpaVendorAdapter' threw exception; nested exception is java.lang.IllegalStateException: dbType not support : dm, url jdbc:dm://127.0.0.1/SYSDBA?characterEncoding=utf-8&useSSL=false
三、错误原因分析
- druid配置中,过滤器中不支持达梦数据库,就是下面这段代码:
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计。'wall'用于防火墙 spring.datasource.filters=stat,wall,log4j
四、解决
- 把wall删除掉即可。
五、个人博客
- 博客是个人学习过程中所记录的一些笔记,希望对你有帮助。博客Memory
温馨提醒:转载请说明原地址