Integration of the phase 3 3.SpringMVC · _07.SSM case _06.ssm integration framework written MyBatis

We need to build Mybits environment.
Mybits of annotations manner. The two methods of sql statement written

SqlMapConfig.xml

Under the new resources xml document


pasted constraint over


two steps

environment label called the environments

automatically generated after the selected tag


configuration-driven address and account password

because we are using annotations, so mapperl inside a class attribute. dao class configuration should be the full path

to copy the full path dao



write the name of the package the way. With the way the package name of all packages directly scan documents following dao

New Test class Test Mybits






Account class provides a method of toString. Easily found out data, the output target



plus two data within the database



Mybits environment completed structures.

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11391508.html