Spring Boot Web with Mybatis
Spring Boot 1.4.0
Maven
mysql , mybatis 3.3.1 , mybatis-spring 1.2.4
JSTL
Logback
External Tomcat 8
Test URL : http://localhost:8080/BootMybatis/login.do
<GlobalNamingResources>
<Resource auth="Container" driverClassName="com.mysql.jdbc.Driver"
loginTimeout="10" maxActive="200" maxIdle="8" maxWait="5000"
name="jdbc/sim" username="dbuser" password="1234"
type="javax.sql.DataSource"
url="jdbc:mysql://db.example.com:3306/exampledb?zeroDateTimeBehavior=convertToNull"/>
</GlobalNamingResources>
<Context docBase="BootMybatis" path="/BootMybatis" reloadable="true">
<ResourceLink global="jdbc/sim" name="jdbc/sim" type="javax.sql.DataSource"/>
</Context>