修复pom中的mybatis依赖关系

pull/5/head
infin_caishuxiao 8 years ago
parent f0127249ec
commit 98aa6ab940

@ -31,23 +31,6 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- ====================
orm
===================== -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!-- ====================
jetty
===================== -->
@ -85,6 +68,23 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- ====================
orm
===================== -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<!-- xxl-job-core -->
<dependency>

@ -1,9 +1,11 @@
package com.xxl.job.executor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("com.infincash.statistics.risk.mapper")//将项目中对应的mapper类的路径加进来就可以了
public class Application {
public static void main(String[] args) {

Loading…
Cancel
Save