1. 程式人生 > >【Java-JPA】讓Springboot啟動不檢查JPA的資料來源配置

【Java-JPA】讓Springboot啟動不檢查JPA的資料來源配置

#https://stackoverflow.com/questions/24074749/spring-boot-cannot-determine-embedded-database-driver-class-for-database-type
#https://github.com/spring-projects/spring-boot/issues/4352
#https://gist.github.com/pradp/86fa604d4a07564d9b2b
#https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-auto-configuration.html
#https://segmentfault.com/a/1190000004316491
#https://blog.csdn.net/zhangjq520/article/details/53996178
#spring.datasource.continue-on-error = true
#spring.datasource.ignore-exception-on-pre-load = true
#spring.datasource.initialization-fail-fast = false
spring.autoconfigure.exclude = org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration

#https://www.e-learn.cn/content/wangluowenzhang/179410
#https://stackoverflow.com/questions/24074749/spring-boot-cannot-determine-embedded-database-driver-class-for-database-type
#https://github.com/spring-projects/spring-boot/issues/4352
#https://gist.github.com/pradp/86fa604d4a07564d9b2b
#https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-auto-configuration.html
#https://segmentfault.com/a/1190000004316491 #https://blog.csdn.net/zhangjq520/article/details/53996178 #spring.datasource.continue-on-error = true #spring.datasource.ignore-exception-on-pre-load = true #spring.datasource.initialization-fail-fast = false spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,\ org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,\ org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration,\ org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration