• Stephane Nicoll's avatar
    Restore support for empty persistence unit with fat jars · b9104c93
    Stephane Nicoll authored
    Due to the layout format change in 1.4, Spring Framework is no longer
    able to compute a default persistence unit root URL. If a Spring Boot 1.4
    application has JPA but does not have any entity, the application started
    from a fat jar now fails with a quite cryptic exception.
    
    This commit introduces `ApplicationInfo` as a general replacement for
    the `ApplicationArguments` and `Banner` singleton beans that
    `SpringApplication` registers on startup. `ApplicationInfo` also defines
    the detected "main" `Class` that can be used to compute a last resort
    URL that makes sense.
    
    If such bean is available, `EntityManagerFactoryBuilder` now sets the
    default persistence unit root location, preventing Spring Framework to
    attempt to resolve an unknown location. Note that in our case the
    persistence unit root location is actually useless: given the way the
    persistence unit is created, nothing actually uses it but Hibernate, as a
    compliant JPA provider, has to make sure this setting is set to a valid
    URL nevertheless.
    
    Closes gh-6635
    b9104c93
Name
Last commit
Last update
..
spring-boot-starter Loading commit data...
spring-boot-starter-activemq Loading commit data...
spring-boot-starter-actuator Loading commit data...
spring-boot-starter-amqp Loading commit data...
spring-boot-starter-aop Loading commit data...
spring-boot-starter-artemis Loading commit data...
spring-boot-starter-batch Loading commit data...
spring-boot-starter-cache Loading commit data...
spring-boot-starter-cloud-connectors Loading commit data...
spring-boot-starter-data-cassandra Loading commit data...
spring-boot-starter-data-couchbase Loading commit data...
spring-boot-starter-data-elasticsearch Loading commit data...
spring-boot-starter-data-gemfire Loading commit data...
spring-boot-starter-data-jpa Loading commit data...
spring-boot-starter-data-mongodb Loading commit data...
spring-boot-starter-data-neo4j Loading commit data...
spring-boot-starter-data-redis Loading commit data...
spring-boot-starter-data-rest Loading commit data...
spring-boot-starter-data-solr Loading commit data...
spring-boot-starter-freemarker Loading commit data...
spring-boot-starter-groovy-templates Loading commit data...
spring-boot-starter-hateoas Loading commit data...
spring-boot-starter-hornetq Loading commit data...
spring-boot-starter-integration Loading commit data...
spring-boot-starter-jdbc Loading commit data...
spring-boot-starter-jersey Loading commit data...
spring-boot-starter-jetty Loading commit data...
spring-boot-starter-jooq Loading commit data...
spring-boot-starter-jta-atomikos Loading commit data...
spring-boot-starter-jta-bitronix Loading commit data...
spring-boot-starter-jta-narayana Loading commit data...
spring-boot-starter-log4j2 Loading commit data...
spring-boot-starter-logging Loading commit data...
spring-boot-starter-mail Loading commit data...
spring-boot-starter-mobile Loading commit data...
spring-boot-starter-mustache Loading commit data...
spring-boot-starter-parent Loading commit data...
spring-boot-starter-redis Loading commit data...
spring-boot-starter-remote-shell Loading commit data...
spring-boot-starter-security Loading commit data...
spring-boot-starter-social-facebook Loading commit data...
spring-boot-starter-social-linkedin Loading commit data...
spring-boot-starter-social-twitter Loading commit data...
spring-boot-starter-test Loading commit data...
spring-boot-starter-thymeleaf Loading commit data...
spring-boot-starter-tomcat Loading commit data...
spring-boot-starter-undertow Loading commit data...
spring-boot-starter-validation Loading commit data...
spring-boot-starter-velocity Loading commit data...
spring-boot-starter-web Loading commit data...
spring-boot-starter-web-services Loading commit data...
spring-boot-starter-websocket Loading commit data...
spring-boot-starter-ws Loading commit data...
src/main/assembly Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...