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?










share|improve this question























  • 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














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?










share|improve this question























  • 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












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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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
















  • 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












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






share|improve this answer





























    up vote
    0
    down vote













    Just add this -Ddebug in the eclipse VM arguments and the detailed debug logs will start printing.






    share|improve this answer



























      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.






      share|improve this answer




















        Your Answer






        StackExchange.ifUsing("editor", function ()
        StackExchange.using("externalEditor", function ()
        StackExchange.using("snippets", function ()
        StackExchange.snippets.init();
        );
        );
        , "code-snippets");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "1"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        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

























        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






        share|improve this answer


























          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






          share|improve this answer
























            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






            share|improve this answer














            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







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 30 at 4:44

























            answered Nov 28 at 4:27









            paul58914080

            483




            483






















                up vote
                0
                down vote













                Just add this -Ddebug in the eclipse VM arguments and the detailed debug logs will start printing.






                share|improve this answer
























                  up vote
                  0
                  down vote













                  Just add this -Ddebug in the eclipse VM arguments and the detailed debug logs will start printing.






                  share|improve this answer






















                    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.






                    share|improve this answer












                    Just add this -Ddebug in the eclipse VM arguments and the detailed debug logs will start printing.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 4 at 14:42









                    janardhan sharma

                    2537




                    2537




















                        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.






                        share|improve this answer
























                          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.






                          share|improve this answer






















                            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.






                            share|improve this answer












                            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.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Nov 10 at 5:29









                            ghudt yi

                            33




                            33



























                                draft saved

                                draft discarded
















































                                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.




                                draft saved


                                draft discarded














                                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





















































                                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







                                Popular posts from this blog

                                Use pre created SQLite database for Android project in kotlin

                                Darth Vader #20

                                Ondo