<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration><session-factory>
<property name="connection.username">root</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/test
</property>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="myeclipse.connection.profile">MySQL</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="show_sql">true</property>
<mapping resource="com/jopo/person.xml" /></session-factory></hibernate-configuration><?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> <bean id="dao" class="com.dao.Dao">
<property name="hibernateTemplate" ref="template"></property>
</bean>
<bean id="template" class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory" ref="sessonFactory"></property>
</bean>
<bean id="sessonFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation"
value="classpath:hibernate.cfg.xml">
</property>
</bean>
</beans>
错误信息:
Exception in thread "main" org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: java.lang.String; nested exception is org.hibernate.MappingException: Unknown entity: java.lang.String
我找了很久都没找出来``````确实找不到了``知道的给我说下谢谢
解决方案 »
- 请教path变量的工作原理
- 如何将application改成applet,求applet代码,讲解
- java中把数据库的内容显示在TextFiled中,并实现修改功能?
- java匹配规则库的问题
- !!!!!!!List取数据,不知道如何入手。请高手帮忙!!!!!!!!
- 学习java的整体认识问题,有不少迷茫,我在这里问下,大家来讨论吧!!!
- 求UltraEdit序列号
- 关于List的add方法与addAll方法的区别
- 我在JPanel中setSize没有作用
- EJB到底是什么东西?它能作什么?
- javac 命令有用 java命令没用了 求救!
- 利用键盘钩子吃掉键盘消息,再用ClipCursor把鼠标控制在一定区域内
jdbc:mysql://localhost:3306/test
</property>把中间的空格去掉,改为<property name="connection.url">jdbc:mysql://localhost:3306/test</property>