我報的錯: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [confi ...
我報的錯:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [config/spring/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource:
這個可能是項目剛開始時導入了mapper文件,但還是沒有實體類與其對應而報的錯,可以把mapper文件先去掉,這樣不報錯了