Commit 7ba4f9c7 by 刘宇峰

添加日志组件

1 parent 51a2005d
...@@ -24,20 +24,22 @@ ...@@ -24,20 +24,22 @@
<groupId>com.glsx</groupId> <groupId>com.glsx</groupId>
<artifactId>rest-admin-alliance</artifactId> <artifactId>rest-admin-alliance</artifactId>
</dependency> </dependency>
<!-- <dependency>-->
<!-- <groupId>com.glsx</groupId>-->
<!-- <artifactId>rest-admin-kafka-ancient</artifactId>-->
<!-- </dependency>-->
<dependency> <dependency>
<groupId>com.glsx</groupId> <groupId>com.glsx</groupId>
<artifactId>rest-admin-mybatis</artifactId> <artifactId>rest-admin-mybatis</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.glsx</groupId> <groupId>com.glsx</groupId>
<artifactId>rest-admin-office</artifactId> <artifactId>rest-admin-office</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.glsx</groupId>
<artifactId>rest-admin-loggin</artifactId>
</dependency>
<dependency>
<groupId>com.glsx</groupId>
<artifactId>rest-admin-swagger2</artifactId>
</dependency>
<!--kafka--> <!--kafka-->
<dependency> <dependency>
<groupId>org.apache.kafka</groupId> <groupId>org.apache.kafka</groupId>
...@@ -78,11 +80,6 @@ ...@@ -78,11 +80,6 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>com.glsx</groupId>
<artifactId>rest-admin-swagger2</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -21,12 +21,12 @@ public class WebConfig implements WebMvcConfigurer { ...@@ -21,12 +21,12 @@ public class WebConfig implements WebMvcConfigurer {
//1.加入的顺序就是拦截器执行的顺序, //1.加入的顺序就是拦截器执行的顺序,
//2.按顺序执行所有拦截器的preHandle //2.按顺序执行所有拦截器的preHandle
//3.所有的preHandle 执行完再执行全部postHandle 最后是postHandle //3.所有的preHandle 执行完再执行全部postHandle 最后是postHandle
// registry.addInterceptor(authInterceptor).addPathPatterns("/**") registry.addInterceptor(authInterceptor).addPathPatterns("/**")
// .excludePathPatterns("/") .excludePathPatterns("/")
// .excludePathPatterns("swagger-ui.html") .excludePathPatterns("swagger-ui.html")
// .excludePathPatterns("/actuator/**") .excludePathPatterns("/actuator/**")
// .excludePathPatterns("/api/**") .excludePathPatterns("/api/**")
// .excludePathPatterns("/swagger-resources/**", "/webjars/**", "/v2/**", "/swagger-ui.html/**"); .excludePathPatterns("/swagger-resources/**", "/webjars/**", "/v2/**", "/swagger-ui.html/**");
} }
@Override @Override
......
...@@ -32,9 +32,9 @@ public class ElectricFenceController { ...@@ -32,9 +32,9 @@ public class ElectricFenceController {
@SysLog("新增围栏") @SysLog("新增围栏")
@PostMapping(value = "/add") @PostMapping(value = "/add")
@ApiOperation(value = "新增围栏") @ApiOperation(value = "新增围栏")
@ApiImplicitParams({ // @ApiImplicitParams({
@ApiImplicitParam(name = "fenceName", value = "fenceName", required = true, dataType = "cn.com.glsx.admin.modules.model.ElectricFenceBO", paramType = "body") // @ApiImplicitParam(name = "fenceName", value = "fenceName", required = true, dataType = "cn.com.glsx.admin.modules.model.ElectricFenceBO", paramType = "body")
}) // })
public R add(@RequestBody @Validated ElectricFenceBO fenceBO) throws Exception { public R add(@RequestBody @Validated ElectricFenceBO fenceBO) throws Exception {
electricFenceService.addFence(fenceBO); electricFenceService.addFence(fenceBO);
return R.ok(); return R.ok();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!