Spring Download. How to disable initialization JPA Conditionaliy

I wonder if you can disable intialization JPA Stack compete.

In some situation, my application runs in an environment where the database is not available. An application can survive at the application level. But technically, I get some exception when initializing the data source.

  • It may be somehow disable the initialization of JPA at all (not necessary with dud.dh. By profile or related in this way.
  • Or at least I can say that the connection pool is not connected or something like that.
  • Other ideas?
+4
source share
1 answer

, : JPA, . DataSource/JPA, spring.autoconfigure.excludes ( ) application.properties.

? DataSourceAutoConfiguration, , , .

, spring.autoconfigure.excludes - avaiable Spring 1.3.0.M3

+7

Source: https://habr.com/ru/post/1607504/


All Articles