Polish "Add micrometer tracing documentation"
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
|
||||
package org.springframework.boot.docs.actuator.micrometertracing.gettingstarted;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -25,8 +28,11 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@SpringBootApplication
|
||||
public class MyApplication {
|
||||
|
||||
private static final Log logger = LogFactory.getLog(MyApplication.class);
|
||||
|
||||
@RequestMapping("/")
|
||||
String home() {
|
||||
logger.info("home() has been called");
|
||||
return "Hello World!";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user