Commit 13b94fde authored by KeYong's avatar KeYong

提交黑河站swagger和预案记录接口增加权限

parent c4160606
...@@ -196,6 +196,7 @@ public class ContingencyPlanController extends BaseController { ...@@ -196,6 +196,7 @@ public class ContingencyPlanController extends BaseController {
} }
} }
@Permission
@ApiOperation(value = "预案启动记录分页列表") @ApiOperation(value = "预案启动记录分页列表")
@RequestMapping(value = "/record/page", method = RequestMethod.GET) @RequestMapping(value = "/record/page", method = RequestMethod.GET)
public ResponseModel recordList( public ResponseModel recordList(
......
...@@ -4,6 +4,7 @@ import java.io.IOException; ...@@ -4,6 +4,7 @@ import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.URISyntaxException; import java.net.URISyntaxException;
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -49,6 +50,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2; ...@@ -49,6 +50,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableTransactionManagement @EnableTransactionManagement
@EnableConfigurationProperties @EnableConfigurationProperties
@EnableSwagger2 @EnableSwagger2
@EnableKnife4j
@ServletComponentScan @ServletComponentScan
@EnableJpaAuditing @EnableJpaAuditing
@EnableDiscoveryClient @EnableDiscoveryClient
......
#DB properties: #DB properties:
spring.datasource.url = jdbc:mysql://172.16.11.201:3306/dl_business_v3.0.1.3_pyh_0510?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8 spring.datasource.url = jdbc:mysql://172.16.11.201:3306/dl_business?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=Yeejoin@2020 spring.datasource.password=Yeejoin@2020
spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name = com.mysql.cj.jdbc.Driver
...@@ -112,3 +112,14 @@ sso.client.secret=6t5oDDKhEODXa++UNUxxLHSF5kVqECq6j+wahtCbv8c= ...@@ -112,3 +112,14 @@ sso.client.secret=6t5oDDKhEODXa++UNUxxLHSF5kVqECq6j+wahtCbv8c=
sso.login.type=server_auth sso.login.type=server_auth
sso.login.client=dce sso.login.client=dce
sso.client.url=https://198.87.103.88:30443/oauth2/oauth/rest_token sso.client.url=https://198.87.103.88:30443/oauth2/oauth/rest_token
#\u542F\u7528knife4j\u589E\u5F3A\u6A21\u5F0F
knife4j.enable=true
#\u751F\u4EA7\u6A21\u5F0F\u5C4F\u853D, true\u5C06\u7981\u6B62\u8BBF\u95EEAPI\u5728\u7EBF\u6587\u6863, false\u53EF\u4EE5\u770B\u5230\u6587\u6863, \u5BC6\u7801\u5931\u6548
knife4j.production=true
#Basic\u8BA4\u8BC1\u529F\u80FD\uFF0C\u5373\u662F\u5426\u9700\u8981\u901A\u8FC7\u7528\u6237\u540D\u3001\u5BC6\u7801\u9A8C\u8BC1\u540E\u624D\u53EF\u4EE5\u8BBF\u95EE\u5728\u7EBFAPI\u6587\u6863
knife4j.basic.enable=true
#\u5982\u679C\u5F00\u542FBasic\u8BA4\u8BC1\u5374\u672A\u914D\u7F6E\u7528\u6237\u540D\u4E0E\u5BC6\u7801\uFF0C\u9ED8\u8BA4\u662F\uFF1Aadmin/123321, \u5373\u4F7F\u8F93\u5165\u5BF9\u4E86, \u4E5F\u4F1A\u4E00\u76F4\u5FAA\u73AF
knife4j.basic.username=admin
knife4j.basic.password=a1234560
...@@ -64,6 +64,12 @@ ...@@ -64,6 +64,12 @@
<artifactId>springfox-swagger-ui</artifactId> <artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.version}</version> <version>${swagger.version}</version>
</dependency> </dependency>
<!--swagger的增强包knife4j-->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>2.0.5</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId> <artifactId>spring-boot-starter-data-jpa</artifactId>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment