004-Spring boot 快速入门-项目搭建与启动、SpringBootApplication
2018-01-21 20:20
921 查看
一、官方地址
Spring:http://spring.io/Spring Project:http://spring.io/projects
Spring boot:https://projects.spring.io/spring-boot/
帮助文档:https://docs.spring.io/spring-boot/docs/1.5.9.RELEASE/reference/htmlsingle/
二、项目搭建
方式一、项目搭建继承父pom方式【不推荐】
1)新建maven项目→使用默认配置即可短歌行 作者:曹操 对酒当歌,人生几何! 譬如朝露,去日苦多。 慨当以慷,忧思难忘。 何以解忧?唯有杜康。 青青子衿,悠悠我心。 但为君故,沉吟至今。 呦呦鹿鸣,食野之苹。 我有嘉宾,鼓瑟吹笙。 明明如月,何时可掇? 忧从中来,不可断绝。 越陌度阡,枉用相存。 契阔谈,心念旧恩。 月明星稀,乌鹊南飞。 绕树三匝,何枝可依? 山不厌高,海不厌深。 周公吐哺,天下归心。
View Code
即可。前提是不关闭。
自定义:也可以在application.properties中修改文件路径以及编码,默认是utf-8
banner.location=mybanner.txt banner.charset=GBK
3.改变启动样式文件格式图片
springboot支持图片的banner,将图片放置在classpath,图片格式jpg、png、gif默认:名称是banner.jpg或其他格式
自定义:也可以在application.properties中修改文件路径
banner.image.location=my.jpg
相关文章推荐
- springboot入门,简单能跑的项目快速搭建
- IDEA启动Spring Boot项目提示Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServlet...
- 构建微服务:快速搭建Spring Boot项目
- idea快速搭建springboot项目的操作方法
- SpringBoot启动报错 ApplicationStartingEvent,刚入门使用springboot
- springboot快速入门(一)——HelloWorld搭建
- SpringBoot(一):快速搭建一个springboot项目
- JAVAEE——SpringBoot入门:简介、微服务、环境准备、helloworld与探究、快速构建项目
- SpringBoot1-spirng项目快速搭建+maven+spring的基本配置
- 003,spring boot RESTfull API简单项目的快速搭建
- 快速搭建spring-boot的HelloWord项目
- spring-boot入门(一)快速搭建一个web应用
- 【项目搭建】使用spring-boot进行REST风格的微服务开发入门
- 【Spring Boot教程】快速搭建spring boot项目工程
- Spring Boot 学习(一) 快速搭建SpringBoot 项目
- springboot (1) 快速搭建简单项目
- springboot入门-hellospringboot项目搭建
- 快速搭建一个restful风格的springboot项目
- 快速搭建springboot项目并整合easymybatis
- 通过Spring Boot + Mybatis + Redis快速搭建现代化Web项目