eclipse spring boot console log does not print mapped controller info
up vote
0
down vote
favorite
I can access the controller in web browser, but I can't see its mapping message in the console log. Normally when spring boot app starts, the eclipse console should print out the mapped controller and the accessing url, why didn't I see it?
I have already added the logging.level.org.springframework.web=DEBUG
to application.properties file, but it does not help.
Updated:
This is my pom.xml
file:
<modelVersion>4.0.0</modelVersion>
<groupId>com.yp</groupId>
<artifactId>BootTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>BootTest</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
The snippet of console log when app starts
Is there any way to show up mapped controller info when app starts?
java spring spring-boot
add a comment |
up vote
0
down vote
favorite
I can access the controller in web browser, but I can't see its mapping message in the console log. Normally when spring boot app starts, the eclipse console should print out the mapped controller and the accessing url, why didn't I see it?
I have already added the logging.level.org.springframework.web=DEBUG
to application.properties file, but it does not help.
Updated:
This is my pom.xml
file:
<modelVersion>4.0.0</modelVersion>
<groupId>com.yp</groupId>
<artifactId>BootTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>BootTest</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
The snippet of console log when app starts
Is there any way to show up mapped controller info when app starts?
java spring spring-boot
Can you update the code? And what logging you like to seen in console? Spring boot does not log mapping urls to controllers unless you specify log message in method
– Deadpool
Nov 4 at 14:50
Are you using Spring Boot 2.1? It uses Spring Framework 5.1 which includes a fairly major overhaul of Spring MVC’s logging.
– Andy Wilkinson
Nov 4 at 17:42
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I can access the controller in web browser, but I can't see its mapping message in the console log. Normally when spring boot app starts, the eclipse console should print out the mapped controller and the accessing url, why didn't I see it?
I have already added the logging.level.org.springframework.web=DEBUG
to application.properties file, but it does not help.
Updated:
This is my pom.xml
file:
<modelVersion>4.0.0</modelVersion>
<groupId>com.yp</groupId>
<artifactId>BootTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>BootTest</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
The snippet of console log when app starts
Is there any way to show up mapped controller info when app starts?
java spring spring-boot
I can access the controller in web browser, but I can't see its mapping message in the console log. Normally when spring boot app starts, the eclipse console should print out the mapped controller and the accessing url, why didn't I see it?
I have already added the logging.level.org.springframework.web=DEBUG
to application.properties file, but it does not help.
Updated:
This is my pom.xml
file:
<modelVersion>4.0.0</modelVersion>
<groupId>com.yp</groupId>
<artifactId>BootTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>BootTest</name>
<description>Demo project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
The snippet of console log when app starts
Is there any way to show up mapped controller info when app starts?
java spring spring-boot
java spring spring-boot
edited Nov 5 at 13:16
asked Nov 4 at 14:27
ghudt yi
33
33
Can you update the code? And what logging you like to seen in console? Spring boot does not log mapping urls to controllers unless you specify log message in method
– Deadpool
Nov 4 at 14:50
Are you using Spring Boot 2.1? It uses Spring Framework 5.1 which includes a fairly major overhaul of Spring MVC’s logging.
– Andy Wilkinson
Nov 4 at 17:42
add a comment |
Can you update the code? And what logging you like to seen in console? Spring boot does not log mapping urls to controllers unless you specify log message in method
– Deadpool
Nov 4 at 14:50
Are you using Spring Boot 2.1? It uses Spring Framework 5.1 which includes a fairly major overhaul of Spring MVC’s logging.
– Andy Wilkinson
Nov 4 at 17:42
Can you update the code? And what logging you like to seen in console? Spring boot does not log mapping urls to controllers unless you specify log message in method
– Deadpool
Nov 4 at 14:50
Can you update the code? And what logging you like to seen in console? Spring boot does not log mapping urls to controllers unless you specify log message in method
– Deadpool
Nov 4 at 14:50
Are you using Spring Boot 2.1? It uses Spring Framework 5.1 which includes a fairly major overhaul of Spring MVC’s logging.
– Andy Wilkinson
Nov 4 at 17:42
Are you using Spring Boot 2.1? It uses Spring Framework 5.1 which includes a fairly major overhaul of Spring MVC’s logging.
– Andy Wilkinson
Nov 4 at 17:42
add a comment |
3 Answers
3
active
oldest
votes
up vote
1
down vote
As mentioned by Andy Wilkinson there has been a lot of overhaul especially in terms of logging. The commit removed the log.
If you wish to see this information, you can change the logging level to TRACE instead of falling back to a previous version
logging.level.org.springframework.web: TRACE
add a comment |
up vote
0
down vote
Just add this -Ddebug
in the eclipse VM arguments and the detailed debug logs will start printing.
add a comment |
up vote
0
down vote
accepted
Just like the comment post by Andy Wilkinson said, I was using spring boot 2.1, when I change the spring boot version to older one, this issue doesn't happen again.
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
As mentioned by Andy Wilkinson there has been a lot of overhaul especially in terms of logging. The commit removed the log.
If you wish to see this information, you can change the logging level to TRACE instead of falling back to a previous version
logging.level.org.springframework.web: TRACE
add a comment |
up vote
1
down vote
As mentioned by Andy Wilkinson there has been a lot of overhaul especially in terms of logging. The commit removed the log.
If you wish to see this information, you can change the logging level to TRACE instead of falling back to a previous version
logging.level.org.springframework.web: TRACE
add a comment |
up vote
1
down vote
up vote
1
down vote
As mentioned by Andy Wilkinson there has been a lot of overhaul especially in terms of logging. The commit removed the log.
If you wish to see this information, you can change the logging level to TRACE instead of falling back to a previous version
logging.level.org.springframework.web: TRACE
As mentioned by Andy Wilkinson there has been a lot of overhaul especially in terms of logging. The commit removed the log.
If you wish to see this information, you can change the logging level to TRACE instead of falling back to a previous version
logging.level.org.springframework.web: TRACE
edited Nov 30 at 4:44
answered Nov 28 at 4:27
paul58914080
483
483
add a comment |
add a comment |
up vote
0
down vote
Just add this -Ddebug
in the eclipse VM arguments and the detailed debug logs will start printing.
add a comment |
up vote
0
down vote
Just add this -Ddebug
in the eclipse VM arguments and the detailed debug logs will start printing.
add a comment |
up vote
0
down vote
up vote
0
down vote
Just add this -Ddebug
in the eclipse VM arguments and the detailed debug logs will start printing.
Just add this -Ddebug
in the eclipse VM arguments and the detailed debug logs will start printing.
answered Nov 4 at 14:42
janardhan sharma
2537
2537
add a comment |
add a comment |
up vote
0
down vote
accepted
Just like the comment post by Andy Wilkinson said, I was using spring boot 2.1, when I change the spring boot version to older one, this issue doesn't happen again.
add a comment |
up vote
0
down vote
accepted
Just like the comment post by Andy Wilkinson said, I was using spring boot 2.1, when I change the spring boot version to older one, this issue doesn't happen again.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Just like the comment post by Andy Wilkinson said, I was using spring boot 2.1, when I change the spring boot version to older one, this issue doesn't happen again.
Just like the comment post by Andy Wilkinson said, I was using spring boot 2.1, when I change the spring boot version to older one, this issue doesn't happen again.
answered Nov 10 at 5:29
ghudt yi
33
33
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53141849%2feclipse-spring-boot-console-log-does-not-print-mapped-controller-info%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you update the code? And what logging you like to seen in console? Spring boot does not log mapping urls to controllers unless you specify log message in method
– Deadpool
Nov 4 at 14:50
Are you using Spring Boot 2.1? It uses Spring Framework 5.1 which includes a fairly major overhaul of Spring MVC’s logging.
– Andy Wilkinson
Nov 4 at 17:42