脚本宝典收集整理的这篇文章主要介绍了springboot篇.一,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
勾选web依赖
<parent><!-- 远程父项目--> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.6.2</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.hong</groupId> <artifactId>hellospringboot</artifactId> <version>0.0.1-SNAPSHOT</version> <name>hellospringboot</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties><!-- web依赖: tomcat,dispatcherServlet,xml... --> <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><!-- 打jar包插件 --> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>
2、在resources下配置banner.txt文件内容为彩蛋
////////////////////////////////////////////////////////////////////// _ooOoo_ //// o8888888o //// 88" . "88 //// (| ^_^ |) //// O = /O //// ____/`---'____ //// .' \| |// `. //// / \||| : |||// //// / _||||| -:- |||||- //// | | \ - /// | | //// | _| ''---/'' | | //// .-__ `-` ___/-. / //// ___`. .' /--.-- `. . ___ //// ."" '< `.____<|>_/___.' >'"". //// | | : `- `.;` _ /`;.`/ - ` : | | //// `-. _ __ /__ _/ .-` / / //// ========`-.____`-.________/___.-`____.-'======== //// `=---=' //// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //// 佛祖保佑 永不宕机 永无BUG //////////////////////////////////////////////////////////////////////
以上是脚本宝典为你收集整理的springboot篇.一全部内容,希望文章能够帮你解决springboot篇.一所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。