ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

spring-boot tomcat 切换至jetty

2022-07-16 08:34:46  阅读:149  来源: 互联网

标签:01 07 tomcat spring 08 boot 70305 2022 main


   <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
                <!--排除 tomcat-->
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-tomcat</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <!--排除 jetty-->
        <dependency>
          <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-jetty</artifactId>
  </dependency>


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.7.1)

2022-07-16 08:01:15.745  INFO 70305 --- [           main] com.example.demo.DemoApplication         : Starting DemoApplication using Java 1.8.0_271 on xmc000.local with PID 70305 (/Users/xmc/IdeaProjects/demo/target/classes started by xmc in /Users/xmc/IdeaProjects/demo)
2022-07-16 08:01:15.748  INFO 70305 --- [           main] com.example.demo.DemoApplication         : No active profile set, falling back to 1 default profile: "default"
2022-07-16 08:01:16.489  INFO 70305 --- [           main] org.eclipse.jetty.util.log               : Logging initialized @1609ms to org.eclipse.jetty.util.log.Slf4jLog
2022-07-16 08:01:16.577  INFO 70305 --- [           main] o.s.b.w.e.j.JettyServletWebServerFactory : Server initialized with port: 8080
2022-07-16 08:01:16.579  INFO 70305 --- [           main] org.eclipse.jetty.server.Server          : jetty-9.4.48.v20220622; built: 2022-06-21T20:42:25.880Z; git: 6b67c5719d1f4371b33655ff2d047d24e171e49a; jvm 1.8.0_271-b09
2022-07-16 08:01:16.602  INFO 70305 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring embedded WebApplicationContext
2022-07-16 08:01:16.602  INFO 70305 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 801 ms
2022-07-16 08:01:16.672  INFO 70305 --- [           main] org.eclipse.jetty.server.session         : DefaultSessionIdManager workerName=node0
2022-07-16 08:01:16.672  INFO 70305 --- [           main] org.eclipse.jetty.server.session         : No SessionScavenger set, using defaults
2022-07-16 08:01:16.673  INFO 70305 --- [           main] org.eclipse.jetty.server.session         : node0 Scavenging every 600000ms
2022-07-16 08:01:16.683  INFO 70305 --- [           main] o.e.jetty.server.handler.ContextHandler  : Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@5cbf9e9f{application,/,[file:///private/var/folders/37/0q77vwn52dg01fb_mbkdm0zc0000gn/T/jetty-docbase.8080.5575551599752862801/],AVAILABLE}
2022-07-16 08:01:16.684  INFO 70305 --- [           main] org.eclipse.jetty.server.Server          : Started @1805ms
2022-07-16 08:01:17.022  INFO 70305 --- [           main] o.e.j.s.h.ContextHandler.application     : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-07-16 08:01:17.022  INFO 70305 --- [           main] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2022-07-16 08:01:17.023  INFO 70305 --- [           main] o.s.web.servlet.DispatcherServlet        : Completed initialization in 1 ms
2022-07-16 08:01:17.045  INFO 70305 --- [           main] o.e.jetty.server.AbstractConnector       : Started ServerConnector@669513d8{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2022-07-16 08:01:17.045  INFO 70305 --- [           main] o.s.b.web.embedded.jetty.JettyWebServer  : Jetty started on port(s) 8080 (http/1.1) with context path '/'
2022-07-16 08:01:17.053  INFO 70305 --- [           main] com.example.demo.DemoApplication         : Started DemoApplication in 1.632 seconds (JVM running for 2.175)

标签:01,07,tomcat,spring,08,boot,70305,2022,main
来源: https://www.cnblogs.com/xmc000/p/16483294.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有