照著老師的搞法,還是會報錯,沒調出來,花了兩三個小時,感覺是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