Skip to content

Commit

Permalink
fix: 修复swagger问题
Browse files Browse the repository at this point in the history
  • Loading branch information
MyHerux committed Nov 13, 2017
1 parent 7e139e9 commit 4a19531
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.2.2</version>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.2.2</version>
<version>2.7.0</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

/**
Expand All @@ -13,9 +11,7 @@
*/
@EnableSwagger2
@ServletComponentScan
@EnableAutoConfiguration
@SpringBootApplication
@ComponentScan("com.halfstory")
public class ForkchapterApplication {

public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@

import javax.sql.DataSource;

/**
* 数据库配置
*
* @author xu
* @date 2017/11/08
*/
@Configuration
@EnableTransactionManagement
@MapperScan(basePackages = DataSourceConfig.PACKAGE, sqlSessionFactoryRef = "SqlSessionFactory")
Expand Down

0 comments on commit 4a19531

Please sign in to comment.