我有一些 Spring 上下文配置
<bean name="propertyConfigurator" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="classpath:/com/net/model/jdbc.properties"/>
</bean>
....
<bean id="sessionFactoryToBillingDb" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
....
jdbc.properties看起来像
...
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
...
我想使用 Inellij Idea 的 HQL 控制台,但出现错误:
java.lang.RuntimeException: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.dialect.MySQLDialectt.MySQLDialect] as strategy [org.hibernate.dialect.Dialect]
org.hibernate.dialect。MySQLDialectt.MySQLDialect 怎么了?