Skip to content

Commit 1e50c70

Browse files
committed
修改ApiBoot Logging 集成方式
1 parent f093c66 commit 1e50c70

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

api-boot-samples/api-boot-sample-logging/src/main/java/org/minbox/framework/api/boot/sample/logging/IndexController.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818
package org.minbox.framework.api.boot.sample.logging;
1919

2020
import lombok.Data;
21-
import org.springframework.beans.factory.annotation.Autowired;
2221
import org.springframework.web.bind.annotation.PostMapping;
2322
import org.springframework.web.bind.annotation.RequestBody;
2423
import org.springframework.web.bind.annotation.RestController;
25-
import org.springframework.web.client.RestTemplate;
2624

2725
/**
2826
* @author:恒宇少年 - 于起宇
@@ -36,9 +34,6 @@
3634
@RestController
3735
public class IndexController {
3836

39-
@Autowired
40-
private RestTemplate restTemplate;
41-
4237
@PostMapping(value = "/index")
4338
public User index(@RequestBody User user) throws Exception {
4439
/*HttpEntity<String> httpEntity = new HttpEntity(JSON.toJSONString(user));

api-boot-samples/api-boot-sample-logging/src/main/resources/application.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ spring:
22
application:
33
name: api-boot-sample-logging
44
#profiles:
5-
# active: appoint
5+
# active: appoint
66
server:
77
port: 8080
88

@@ -11,3 +11,6 @@ api:
1111
logging:
1212
format-console-log-json: true
1313
show-console-log: true
14+
logging:
15+
level:
16+
org.minbox.framework.logging: debug

0 commit comments

Comments
 (0)