Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
179 views
in Technique[技术] by (71.8m points)

Spring-boot How to show logs on screen?

I have a method in which I receive a variable year, how can I show in the console the value that is stored in said variable?

This is the method I have, I have put a sysout but I can't see it.

public EmployeeDashboardDto getEmployeeDashboardYearDto(Integer year, Integer employeeId) throws QOException {
        
        System.out.println("year: " + year);        
        
        return null;        
    }
question from:https://stackoverflow.com/questions/66049579/spring-boot-how-to-show-logs-on-screen

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can use debug mode to see if the program enters this method

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...