标签:img work 使用 not als lte scan 后缀名 direct
<!--springBoot整合Mybatis依赖--> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.1.1</version> </dependency>
spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/springboot username: root password: ROOT
在主启动类添加@MapperScan
<build> <!--由于java目录下的xml文件,不能够被编译,因此这里的意思就是将java目录下xml放在resources下--> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.*</include> </includes> <filtering>false</filtering> </resource> </resources> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>
标签:img work 使用 not als lte scan 后缀名 direct
原文地址:https://www.cnblogs.com/lqcswy/p/11798827.html