摘要:SpringBoot设置首页(默认页)跳转 方案1:controller里添加一个"/"的映射路径 @RequestMapping("/")public String index(Model model, HttpServletResponse response) { model.addAttrib
阅读全文
摘要:利用maven按环境打包SpringBoot的不同配置文件 application-dev.properties对应开发环境 application-test.properties对应测试环境 application-prod.properties对应生产环境 application.propert
阅读全文
摘要:#配置内置tomcat的访问日志server.tomcat.accesslog.buffered=trueserver.tomcat.accesslog.directory=D:/logsserver.tomcat.accesslog.enabled=trueserver.tomcat.access
阅读全文
摘要:SpringBoot配置文件 application.properties详解 本文转载:https://www.cnblogs.com/louby/p/8565027.html 阅读过程中若发现有误的地方,请留言纠正! # 文件编码banner.charset= UTF-8# 文件位置banner
阅读全文
摘要:微服务是这样一个结构吗? (二方指其他业务部门) 想要明白这个问题,首先需要知道什么是Spring Boot,什么是Spring Cloud,以及两者之间有什么关系? 什么是Spring Boot Spring Boot简化了基于Spring的应用开发,通过少量的代码就能创建一个独立的、产品级别的S
阅读全文
摘要:Spring-boot CLI下载地址: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#getting-started-installing-the-cli 下载后,解压到任意目录.接着就是配置Spring
阅读全文
摘要:发布方式 构建Jar包,cmd命令行运行Spring Boot程序 第一步:在pom.xml中将packing节点值修改为jar,如下面加粗部分: <groupId>com.example</groupId> <artifactId>Demo</artifactId> <version>0.0.1-
阅读全文
摘要:实现方式有两大种(其中包含3种): 一、基于springloaded 1.1)Maven启动方式 第一步:在pom.xml中的“plugin节点”里面添加如下依赖: <dependencies> <dependency> <groupId>org.springframework</groupId>
阅读全文