前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >第一节,创建第一个springboot项目

第一节,创建第一个springboot项目

作者头像
DencyCheng
发布2018-11-05 16:05:21
7420
发布2018-11-05 16:05:21
举报
文章被收录于专栏:SpringBoot

版权声明:本文为博主原创文章,未经博主允许不得转载。

本系列使用工具 IDEA

1.创建项目

2.新创建完项目目录

3.开启项目

有键打开

执行

如下图,就代表启动成功了

代码语言:javascript
复制
 .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.0.4.RELEASE)

2018-08-09 12:06:20.958  INFO 11480 --- [           main] com.dencycheng.demo1.Demo1Application    : Starting Demo1Application on dell-PC with PID 11480 (E:\ideaWork\demo1\target\classes started by dell in E:\ideaWork\demo1)
2018-08-09 12:06:20.985  INFO 11480 --- [           main] com.dencycheng.demo1.Demo1Application    : No active profile set, falling back to default profiles: default
2018-08-09 12:06:21.319  INFO 11480 --- [           main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@2fd6b6c7: startup date [Thu Aug 09 12:06:21 CST 2018]; root of context hierarchy
2018-08-09 12:06:23.291  INFO 11480 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2018-08-09 12:06:23.328  INFO 11480 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2018-08-09 12:06:23.329  INFO 11480 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.32
2018-08-09 12:06:23.342  INFO 11480 --- [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: [D:\java\jdk\jdk\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\java\jdk\jdk\bin;D:\java\jdk\jdk\jre\bin;C:\Users\dell\AppData\Local\Programs\Python\Python36-32;D:\java\maven\apache-maven-3.2.5\bin;D:\tools\Git\cmd;D:\tools\mysql-5.7.20-winx64\bin;D:\tools\node\;D:\java\android-sdk\android-sdk-windows\platform-tools;D:\java\android-sdk\android-sdk-windows\tools;D:\java\gradle-4.8-rc-2-bin\gradle-4.8-rc-2\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\tools\sqlserver2008\100\Tools\Binn\;D:\tools\sqlserver2008\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;D:\tools\Microsoft VS Code\bin;C:\Users\dell\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\dell\AppData\Local\Programs\Python\Python36-32\;C:\Users\dell\AppData\Roaming\npm;D:\tools\Microsoft VS Code\bin;.]
2018-08-09 12:06:23.693  INFO 11480 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2018-08-09 12:06:23.693  INFO 11480 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2441 ms
2018-08-09 12:06:23.753  INFO 11480 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Servlet dispatcherServlet mapped to [/]
2018-08-09 12:06:23.758  INFO 11480 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-08-09 12:06:23.758  INFO 11480 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-08-09 12:06:23.758  INFO 11480 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-08-09 12:06:23.758  INFO 11480 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2018-08-09 12:06:23.871  INFO 11480 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-08-09 12:06:24.102  INFO 11480 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@2fd6b6c7: startup date [Thu Aug 09 12:06:21 CST 2018]; root of context hierarchy
2018-08-09 12:06:24.154  INFO 11480 --- [           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-08-09 12:06:24.155  INFO 11480 --- [           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-08-09 12:06:24.175  INFO 11480 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-08-09 12:06:24.176  INFO 11480 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-08-09 12:06:24.292  INFO 11480 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2018-08-09 12:06:24.392  INFO 11480 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2018-08-09 12:06:24.397  INFO 11480 --- [           main] com.dencycheng.demo1.Demo1Application    : Started Demo1Application in 4.925 seconds (JVM running for 10.043)

4.访问 默认8080端口

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018年08月09日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
云数据库 SQL Server
腾讯云数据库 SQL Server (TencentDB for SQL Server)是业界最常用的商用数据库之一,对基于 Windows 架构的应用程序具有完美的支持。TencentDB for SQL Server 拥有微软正版授权,可持续为用户提供最新的功能,避免未授权使用软件的风险。具有即开即用、稳定可靠、安全运行、弹性扩缩等特点。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档