<? The XML version="1.0" encoding="utf-8"?>
XMLNS: context="http://www.springframework.org/schema/context"
XMLNS: MVC="http://www.springframework.org/schema/mvc" XMLNS: tx="http://www.springframework.org/schema/tx"
Xsi: schemaLocation="HTTP://http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd "& gt;
SqlSession.com - configuration things MIT () submitted - & gt;
Mybatis - comfig
<? The XML version="1.0" encoding="utf-8"?>
"Http://mybatis.org/dtd/mybatis-3-config.dtd" & gt;
My implementation class
<? The XML version="1.0" encoding="utf-8"?>
"Http://mybatis.org/dtd/mybatis-3-config.dtd" & gt;
My test class
Package com. Sq. Student. Data. The test;
import org.junit.Test;
The import com. Sq. Student. Data. Dao. Impl. StudentDaoImpl;
Public class TestStudent {
@ Test
Public void name () {
StudentDaoImpl dao=new StudentDaoImpl ();
Dao. SelectAllStudent ();
}
}
Has been submitted to the null pointer
Java. Lang. NullPointerException
At com. Sq. Student. Data. Dao. Impl. StudentDaoImpl. SelectAllStudent (StudentDaoImpl. Java: 52)
At com. Sq. Student. Data. Test. TestStudent. Name (TestStudent. Java: 15)
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 39)
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (DelegatingMethodAccessorImpl. Java: 25)
The at Java. Lang. Reflect. Method. Invoke (597) Method. The Java:
The at org. Junit. Runners. Model. FrameworkMethod $1. RunReflectiveCall (FrameworkMethod. Java: 50)
The at org. Junit. Internal. Runners. Model. ReflectiveCallable. Run (ReflectiveCallable. Java: 12)
The at org. Junit. Runners. Model. FrameworkMethod. InvokeExplosively (FrameworkMethod. Java: 47)
The at org. Junit. Internal. Runners. Statements. InvokeMethod. Evaluate (InvokeMethod. Java: 17)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull