照着老师的搞法,还是会报错,没调出来,花了两三个小时,感觉是jar包的版本被我改废了,
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlSessionFactory' is defined
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlSessionFactory' is defined
2017-03-01
spring-context 这个版本比较高,要匹配1.8jdk版本,换不了jdk版(用的1.7),去搜索了下,把spring-context 的版本从4.2.7换成了3.2.0 解决问题; 搜索微信号码:827374697,有遇到问题的加微信,互相学习;
2017-03-01
必须要Jdk1.8版本吗?我用的jdk1.7总是报错:
The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files
我用的kepler版本的eclipse 好像不支持jdk1.8版本,是不是要重新卸载了装一个高版本的?
The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files
我用的kepler版本的eclipse 好像不支持jdk1.8版本,是不是要重新卸载了装一个高版本的?
2017-03-01
mvn archetype:create -DgroupId=org.seckill -DartifactId=seckill -DarchetypeArtifactId-maven-archetype-webapp
2017-02-27
@RunWith(SpringJUnit4ClassRunner.class)这一句报错就手动导包可以解决
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
2017-02-26
下次有问题一定要先看一下评论!!!create不了的同学,可以这样写:
`start_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '秒杀开始时间',
`end_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '秒杀结束时间',
`create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`start_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '秒杀开始时间',
`end_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '秒杀结束时间',
`create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
2017-02-25
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
2017-02-21