LocalContainerEntityManagerFactoryBean could accept "classpath*:/" path locations [SPR-3979] #8659
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Leonardo Pinho opened SPR-3979 and commented
LocalContainerEntityManagerFactoryBean could use PathMatchingResourcePatternResolver as ResourcePatternResolver and allow to use classpath*:/ location paths to read jar-file from persistent.xml, like:
<persistence>
<persistence-unit name="SpringJpaPersistenceUnit" transaction-type="RESOURCE_LOCAL">
<jar-file>classpath*:/common.jar</jar-file>
</persistence-unit>
</persistence>
Otherwise, we have to use the xml above in order to read some jar ("common.jar" p.ex.) from WEB-INF/lib:
<persistence>
<persistence-unit name="SpringJpaPersistenceUnit" transaction-type="RESOURCE_LOCAL">
<jar-file>/WEB-INF/lib/common.jar</jar-file>
</persistence-unit>
</persistence>
Thanks,
Leonardo
Affects: 2.0.7, 2.1 M4, 2.5 RC1
Backported to: 2.0.9
The text was updated successfully, but these errors were encountered: