解决方案 »
- struts2和spring3整合项目,action无法调用业务逻辑组件的方法
- 我想请有经验的高手帮帮忙
- 奇怪的GB18030乱码问题
- 操作系统 linux,在本机执行exp数据导出,导出的dmp中的汉字为乱码?
- jar文件手工打包的问题
- 整合ssh时出现的问题!!
- hibernate如何使用连接查询
- 初学EJB,用什么样的开发平台比较好啊?
- !!!急等:《ibatis中关于多表查询出现我不能解决的问题,为什么结果不定
- 1,000,000.00有什么算法可以转成100000谢谢
- LazyInitializationException: could not initialize proxy - no Session
- java实现oracle表数据的导入与导出
你是不是没有配置DataSource呀!
是这个么
<?xml version="1.0" encoding="UTF-8" ?>
<c3p0-config>
<default-config>
<property name="jdbcUrl">
<![CDATA[
jdbc:mysql://localhost:3306/goods?useUnicode=true&characterEncoding=UTF8&useServerPrepStmts=true&prepStmtCacheSqlLimit=256&cachePrepStmts=true&prepStmtCacheSize=256&rewriteBatchedStatements=true
]]>
</property>
<property name="driverClass">com.mysql.jdbc.Driver</property>
<property name="user">root</property>
<property name="password">407611</property>
<property name="acquireIncrement">3</property>
<property name="initialPoolSize">10</property>
<property name="minPoolSize">2</property>
<property name="maxPoolSize">10</property>
</default-config>
</c3p0-config>
是这个么
<?xml version="1.0" encoding="UTF-8" ?>
<c3p0-config>
<default-config>
<property name="jdbcUrl">
<![CDATA[
jdbc:mysql://localhost:3306/goods?useUnicode=true&characterEncoding=UTF8&useServerPrepStmts=true&prepStmtCacheSqlLimit=256&cachePrepStmts=true&prepStmtCacheSize=256&rewriteBatchedStatements=true
]]>
</property>
<property name="driverClass">com.mysql.jdbc.Driver</property>
<property name="user">root</property>
<property name="password">407611</property>
<property name="acquireIncrement">3</property>
<property name="initialPoolSize">10</property>
<property name="minPoolSize">2</property>
<property name="maxPoolSize">10</property>
</default-config>
</c3p0-config>
这个是c3p0的配置呀!你找下有没有DataSource,或者是JDBC的配置
是这个么
<?xml version="1.0" encoding="UTF-8" ?>
<c3p0-config>
<default-config>
<property name="jdbcUrl">
<![CDATA[
jdbc:mysql://localhost:3306/goods?useUnicode=true&characterEncoding=UTF8&useServerPrepStmts=true&prepStmtCacheSqlLimit=256&cachePrepStmts=true&prepStmtCacheSize=256&rewriteBatchedStatements=true
]]>
</property>
<property name="driverClass">com.mysql.jdbc.Driver</property>
<property name="user">root</property>
<property name="password">407611</property>
<property name="acquireIncrement">3</property>
<property name="initialPoolSize">10</property>
<property name="minPoolSize">2</property>
<property name="maxPoolSize">10</property>
</default-config>
</c3p0-config>
这个是c3p0的配置呀!你找下有没有DataSource,或者是JDBC的配置没有其他的配置了,有了c3p0不就可以得到到数据库的连接了吗