提交 e0231438 编写于 作者: J Juergen Hoeller 提交者: Chris Beams

fixed "packagesToScan" to avoid additional provider scan (SPR-8936)

上级 02452a1a
......@@ -390,7 +390,7 @@ public class DefaultPersistenceUnitManager
private SpringPersistenceUnitInfo buildDefaultPersistenceUnitInfo() {
SpringPersistenceUnitInfo scannedUnit = new SpringPersistenceUnitInfo();
scannedUnit.setPersistenceUnitName(this.defaultPersistenceUnitName);
scannedUnit.excludeUnlistedClasses();
scannedUnit.setExcludeUnlistedClasses(true);
if (this.packagesToScan != null) {
for (String pkg : this.packagesToScan) {
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册