как отключить именованные запросы jpa ign или игнорировать файл сканирования jpa-named-queries.properties - PullRequest
0 голосов
/ 31 августа 2018

журнал:

[main] [DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver] org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(PathMatchingResourcePatternResolver.java:321)
Resolved classpath location [META-INF/jpa-named-queries.properties] to resources []
[main] [DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver] org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(PathMatchingResourcePatternResolver.java:321)
Resolved classpath location [META-INF/jpa-named-queries.properties] to resources []
[main] [DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver] org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(PathMatchingResourcePatternResolver.java:321)
Resolved classpath location [META-INF/jpa-named-queries.properties] to resources []
[main] [DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver] org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(PathMatchingResourcePatternResolver.java:321)
Resolved classpath location [META-INF/jpa-named-queries.properties] to resources []
[main] [DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver] org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(PathMatchingResourcePatternResolver.java:321)
Resolved classpath location [META-INF/jpa-named-queries.properties] to resources []
[main] [DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver] org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(PathMatchingResourcePatternResolver.java:321)
Resolved classpath location [META-INF/jpa-named-queries.properties] to resources []
[main] [DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver] org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(PathMatchingResourcePatternResolver.java:321)
Resolved classpath location [META-INF/jpa-named-queries.properties] to resources []
[main] [DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver] org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(PathMatchingResourcePatternResolver.java:321)
Resolved classpath location [META-INF/jpa-named-queries.properties] to resources []

сканировать файл 'jpa-named-queries.properties', но этот файл отсутствует ни в моем проекте, ни в каких-либо банках. так можно отключить именованные запросы jpa или игнорировать проверку этого файла?

мои файлы конфигурации:

<context:annotation-config />
<jpa:repositories base-package="<hidden>.*.dao" />
<context:component-scan base-package="<hidden>.*.service.impl" />

<task:scheduler id="defaultTaskScheduler" pool-size="${default.TaskScheduler.poolSize}" />
<context:component-scan base-package="<hidden>.*.task.*" />

<bean id="entityManagerFactory"
    class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    <property name="jpaVendorAdapter">
        <bean
            class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
        </bean>
    </property>
    <property name="dataSource" ref="dataSource" />
    <property name="packagesToScan" value="<hidden>.*.po" />
    <property name="jpaPropertyMap">
        <map>
            <entry key="hibernate.show_sql" value="${hibernate.show_sql}" />
            <entry key="hibernate.format_sql" value="${hibernate.format_sql}" />
            <entry key="hibernate.hbm2ddl.auto" value="${hibernate.hbm2ddl.auto}" />
            <entry key="hibernate.dialect" value="${hibernate.dialect}" />
            <entry key="hibernate.enable_lazy_load_no_trans" value="true" />
        </map>
    </property>
</bean>

<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    <property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>

баночка в моем проекте: весна, спящий, общие, куратор, джексон, mysql ...

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...