照著老師的搞法,還是會(huì)報(bào)錯(cuò),沒(méi)調(diào)出來(lái),花了兩三個(gè)小時(shí),感覺(jué)是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 這個(gè)版本比較高,要匹配1.8jdk版本,換不了jdk版(用的1.7),去搜索了下,把spring-context 的版本從4.2.7換成了3.2.0 解決問(wèn)題; 搜索微信號(hào)碼:827374697,有遇到問(wèn)題的加微信,互相學(xué)習(xí);
2017-03-01
必須要Jdk1.8版本嗎?我用的jdk1.7總是報(bào)錯(cuò):
The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files
我用的kepler版本的eclipse 好像不支持jdk1.8版本,是不是要重新卸載了裝一個(gè)高版本的?
The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files
我用的kepler版本的eclipse 好像不支持jdk1.8版本,是不是要重新卸載了裝一個(gè)高版本的?
2017-03-01
mvn archetype:create -DgroupId=org.seckill -DartifactId=seckill -DarchetypeArtifactId-maven-archetype-webapp
2017-02-27
@RunWith(SpringJUnit4ClassRunner.class)這一句報(bào)錯(cuò)就手動(dòng)導(dǎo)包可以解決
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
2017-02-26
下次有問(wèn)題一定要先看一下評(píng)論!??!create不了的同學(xué),可以這樣寫(xiě):
`start_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '秒殺開(kāi)始時(shí)間',
`end_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '秒殺結(jié)束時(shí)間',
`create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
`start_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '秒殺開(kāi)始時(shí)間',
`end_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '秒殺結(jié)束時(shí)間',
`create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '創(chuàng)建時(shí)間',
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