ssm架构的实现(包含项目文件)

来源:互联网 发布:淘宝什么最好卖 编辑:程序博客网 时间:2024/06/07 02:43

由于原来一直在.net平台使用ext.js或者ext.net,所以感觉一直跟不上大众的开发潮流,所以今天自己建立了一个ssm框架的例子,收获良多。

 参考博客:http://blog.csdn.net/zhshulin/article/details/37956105#


因为是跟着这篇博客写的,所以也不写步骤什么的,只是简单的写一下过程中遇见的问题。


首先是jdbc.properties的文件,如果出现


[org.springframework.test.context.support.DirtiesContextTestExecutionListener] - After test method: context [DefaultTestContext@2ed94a8b testClass = TestMyBatis, testInstance = TestMyBatis@38082d64, testMethod = test1@TestMyBatis, testException = org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Unknown database 'att endmanager')
### The error may exist in file [D:\springmvclearning\MyTest\target\classes\cn\frider\mapping\PIdentifyIDMapper.xml]
### The error may involve cn.frider.dao.PIdentifyIDMapper.selectByPrimaryKey
### The error occurred while executing a query

这样的错误的话,那么大家仔细的查看jdbc.properties文件,

字符串后面是否有空格多余(复制粘贴的时候导致的)。

大家能清楚的看到后面的空格的多余


直接上传项目源码(maven项目,包不作上传)

0 0
原创粉丝点击