Add logging preferences
This commit is contained in:
@@ -2,10 +2,12 @@ package com.rest.api.controller;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
@Slf4j
|
||||
@Controller
|
||||
public class HelloController {
|
||||
|
||||
@@ -20,6 +22,8 @@ public class HelloController {
|
||||
@GetMapping(value = "/helloworld/string")
|
||||
@ResponseBody
|
||||
public String helloworldString() {
|
||||
log.debug("Helloworld");
|
||||
log.info("Helloworld");
|
||||
return HELLO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user