| | |
| | | <artifactId>spring-boot-starter-test</artifactId> |
| | | <scope>test</scope> |
| | | </dependency> |
| | | <!--swagger--> |
| | | <dependency> |
| | | <groupId>io.springfox</groupId> |
| | | <artifactId>springfox-swagger2</artifactId> |
| | | <version>3.0.0</version> |
| | | </dependency> |
| | | <!--swagger ui--> |
| | | <dependency> |
| | | <groupId>io.springfox</groupId> |
| | | <artifactId>springfox-swagger-ui</artifactId> |
| | | <version>3.0.0</version> |
| | | </dependency> |
| | | <!--<dependency> |
| | | <groupId>org.thymeleaf.extras</groupId> |
| | | <artifactId>thymeleaf-extras-springsecurity5</artifactId> |
| | |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | /** |
| | | * LandApplication |
| | | * @author |
| | | */ |
| | | @SpringBootApplication |
| | | |
| | | @EnableSwagger2 |
| | | public class LfApplication { |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(LfApplication.class, args); |
对比新文件 |
| | |
| | | package com.lf.server.config; |
| | | |
| | | import org.springframework.context.annotation.Configuration; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | /** |
| | | * SwaggerConfig |
| | | * @author www |
| | | */ |
| | | @Configuration |
| | | @EnableSwagger2 |
| | | public class SwaggerConfig { |
| | | // |
| | | } |
| | |
| | | context-path: /land |
| | | |
| | | spring: |
| | | mvc: |
| | | pathmatch: |
| | | matching-strategy: ant_path_matcher |
| | | datasource: |
| | | username : postgres |
| | | password: postgres |