日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Myeclipse2017下使用Maven搭建的spring boot项目怎样运行?

發布時間:2025/3/19 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Myeclipse2017下使用Maven搭建的spring boot项目怎样运行? 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

剛開始接觸SpringBoot以及Maven,在網上找到很多入門Demo,將這些Demo在Myecplise中導入后怎樣運行?

①導入到Myecplise

②右擊項目名-->Maven-->update Project?

③右擊項目名-->run As -->SpringBootApp

④此時控制臺會出現



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


2018-07-07 09:56:13.414 ?INFO 7048 --- [ ? ? ? ? ? main] org.fkit.hellotest.App ? ? ? ? ? ? ? ? ? : Starting App on HAOHAO-PC with PID 7048 (H:\MyEcplise2017Ci1Wprkspaces\SpringBoot_hellotest\target\classes started by HAOHAO in H:\MyEcplise2017Ci1Wprkspaces\SpringBoot_hellotest)
2018-07-07 09:56:13.423 ?INFO 7048 --- [ ? ? ? ? ? main] org.fkit.hellotest.App ? ? ? ? ? ? ? ? ? : No active profile set, falling back to default profiles: default
2018-07-07 09:56:13.742 ?INFO 7048 --- [ ? ? ? ? ? main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1a0dcaa: startup date [Sat Jul 07 09:56:13 CST 2018]; root of context hierarchy
2018-07-07 09:56:17.072 ?INFO 7048 --- [ ? ? ? ? ? main] o.s.b.w.embedded.tomcat.TomcatWebServer ?: Tomcat initialized with port(s): 8080 (http)
2018-07-07 09:56:17.119 ?INFO 7048 --- [ ? ? ? ? ? main] o.apache.catalina.core.StandardService ? : Starting service [Tomcat]
2018-07-07 09:56:17.119 ?INFO 7048 --- [ ? ? ? ? ? main] org.apache.catalina.core.StandardEngine ?: Starting Servlet Engine: Apache Tomcat/8.5.28
2018-07-07 09:56:17.162 ?INFO 7048 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener ? : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [E:\MyEcplise2017ci1\binary\com.sun.java.jdk8.win32.x86_64_1.8.0.v112\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;E:\Software\Python3\Scripts\;E:\Software\Python3\;C:\Program Files\Java\jdk1.8.0_112\bin;C:\Program Files\Java\jdk1.8.0_112\jre\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;E:\Oraclebaselist\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Java\jdk1.8.0_112\bin;%MYSQL_HOME%\bin;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;E:\Git\Git\cmd;E:\NodeJs\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\VisualSVN Server\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;E:\Maven\apache-maven-3.5.2\bin;C:\Users\HAOHAO\AppData\Roaming\npm;.]
2018-07-07 09:56:17.429 ?INFO 7048 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] ? ? ? : Initializing Spring embedded WebApplicationContext
2018-07-07 09:56:17.430 ?INFO 7048 --- [ost-startStop-1] o.s.web.context.ContextLoader ? ? ? ? ? ?: Root WebApplicationContext: initialization completed in 3697 ms
2018-07-07 09:56:17.739 ?INFO 7048 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean ?: Servlet dispatcherServlet mapped to [/]
2018-07-07 09:56:17.766 ?INFO 7048 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean ? : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-07-07 09:56:17.767 ?INFO 7048 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean ? : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-07-07 09:56:17.768 ?INFO 7048 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean ? : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-07-07 09:56:17.768 ?INFO 7048 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean ? : Mapping filter: 'requestContextFilter' to: [/*]
2018-07-07 09:56:18.705 ?INFO 7048 --- [ ? ? ? ? ? main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1a0dcaa: startup date [Sat Jul 07 09:56:13 CST 2018]; root of context hierarchy
2018-07-07 09:56:18.921 ?INFO 7048 --- [ ? ? ? ? ? main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hello]}" onto public java.lang.String org.fkit.hellotest.HelloController.hello()
2018-07-07 09:56:18.937 ?INFO 7048 --- [ ? ? ? ? ? main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-07-07 09:56:18.937 ?INFO 7048 --- [ ? ? ? ? ? main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-07-07 09:56:19.015 ?INFO 7048 --- [ ? ? ? ? ? main] o.s.w.s.handler.SimpleUrlHandlerMapping ?: Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-07 09:56:19.015 ?INFO 7048 --- [ ? ? ? ? ? main] o.s.w.s.handler.SimpleUrlHandlerMapping ?: Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-07 09:56:19.114 ?INFO 7048 --- [ ? ? ? ? ? main] o.s.w.s.handler.SimpleUrlHandlerMapping ?: Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-07 09:56:19.467 ?INFO 7048 --- [ ? ? ? ? ? main] o.s.j.e.a.AnnotationMBeanExporter ? ? ? ?: Registering beans for JMX exposure on startup
2018-07-07 09:56:19.587 ?INFO 7048 --- [ ? ? ? ? ? main] o.s.b.w.embedded.tomcat.TomcatWebServer ?: Tomcat started on port(s): 8080 (http) with context path ''
2018-07-07 09:56:19.606 ?INFO 7048 --- [ ? ? ? ? ? main] org.fkit.hellotest.App ? ? ? ? ? ? ? ? ? : Started App in 7.506 seconds (JVM running for 10.507)
2018-07-07 09:58:11.028 ?INFO 7048 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] ? ? ? : Initializing Spring FrameworkServlet 'dispatcherServlet'
2018-07-07 09:58:11.028 ?INFO 7048 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet ? ? ? ?: FrameworkServlet 'dispatcherServlet': initialization started

2018-07-07 09:58:11.093 ?INFO 7048 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet ? ? ? ?: FrameworkServlet 'dispatcherServlet': initialization completed in 64 ms

?

⑤訪問正確url

?

如果這篇文章幫助到了你,歡迎點贊鼓勵,您的鼓勵是我最大的動力!

?

總結

以上是生活随笔為你收集整理的Myeclipse2017下使用Maven搭建的spring boot项目怎样运行?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。