Skip to content

Commit

Permalink
add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanope committed Aug 21, 2020
1 parent 7098b38 commit 7f0b8eb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
package com.example.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

private static final Logger logger = LoggerFactory.getLogger(HelloController.class);

@GetMapping("/fast")
public String helloFast() {
logger.info("request");
return "fast";
}

Expand Down

0 comments on commit 7f0b8eb

Please sign in to comment.