From 4a195310b7f3371d0d2fae2219e42b7a115be590 Mon Sep 17 00:00:00 2001 From: myherux Date: Mon, 13 Nov 2017 11:31:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dswagger=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 4 ++-- .../com/halfstory/forkchapter/ForkchapterApplication.java | 4 ---- .../com/halfstory/forkchapter/config/DataSourceConfig.java | 6 ++++++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index f503174..69b69fa 100644 --- a/pom.xml +++ b/pom.xml @@ -96,12 +96,12 @@ io.springfox springfox-swagger2 - 2.2.2 + 2.7.0 io.springfox springfox-swagger-ui - 2.2.2 + 2.7.0 diff --git a/src/main/java/com/halfstory/forkchapter/ForkchapterApplication.java b/src/main/java/com/halfstory/forkchapter/ForkchapterApplication.java index c991475..37454af 100644 --- a/src/main/java/com/halfstory/forkchapter/ForkchapterApplication.java +++ b/src/main/java/com/halfstory/forkchapter/ForkchapterApplication.java @@ -1,10 +1,8 @@ package com.halfstory.forkchapter; import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.ServletComponentScan; -import org.springframework.context.annotation.ComponentScan; import springfox.documentation.swagger2.annotations.EnableSwagger2; /** @@ -13,9 +11,7 @@ */ @EnableSwagger2 @ServletComponentScan -@EnableAutoConfiguration @SpringBootApplication -@ComponentScan("com.halfstory") public class ForkchapterApplication { public static void main(String[] args) { diff --git a/src/main/java/com/halfstory/forkchapter/config/DataSourceConfig.java b/src/main/java/com/halfstory/forkchapter/config/DataSourceConfig.java index d4cff06..a953d3c 100644 --- a/src/main/java/com/halfstory/forkchapter/config/DataSourceConfig.java +++ b/src/main/java/com/halfstory/forkchapter/config/DataSourceConfig.java @@ -13,6 +13,12 @@ import javax.sql.DataSource; +/** + * 数据库配置 + * + * @author xu + * @date 2017/11/08 + */ @Configuration @EnableTransactionManagement @MapperScan(basePackages = DataSourceConfig.PACKAGE, sqlSessionFactoryRef = "SqlSessionFactory")