1、首先在cpmponent中添加mybatis依赖,不需要添加版本,因为父类工程已经有了。
2、接着创建工程目录:

3、创建service接口以及impl实现类:

public interface AdminService {
}

此时发现没有该注解,因为我们还没有导入Spring的依赖。
dependencygroupIdorg.springframework/groupIdartifactIdspring-orm/artifactId/dependencydependencygroupIdorg.springframework/groupIdartifactIdspring-webmvc/artifactId/dependencydependencygroupIdcom.mchange/groupIdartifactIdc3p0/artifactId/dependencydependencygroupIdcglib/groupIdartifactIdcglib/artifactId/dependencydependencygroupIdorg.aspectj/groupIdartifactIdaspectjweaver/artifactId/dependencydependencygroupIdorg.mybatis/groupIdartifactIdmybatis/artifactId/dependencydependencygroupIdorg.mybatis/groupIdartifactIdmybatis-spring/artifactId/dependencydependencygroupIdlog4j/groupIdartifactIdlog4j/artifactId/dependencydependencygroupIdorg.slf4j/groupIdartifactIdslf4j-api/artifactId/dependencydependencygroupIdorg.slf4j/groupIdartifactIdslf4j-log4j12/artifactId/dependencydependencygroupIdmysql/groupIdartifactIdmysql-connector-java/artifactId/dependencydependencygroupIdjstl/groupIdartifactIdjstl/artifactId/dependencydependencygroupIdnet.sf.ehcache/groupIdartifactIdehcache/artifactId/dependencydependencygroupIdorg.quartz-scheduler/groupIdartifactIdquartz/artifactId/dependencydependencygroupIdorg.springframework/groupIdartifactIdspring-context-support/artifactId/dependencydependencygroupIdcommons-collections/groupIdartifactIdcommons-collections/artifactId/dependency













