前言 Spring Boot支持传统部署和更现代的部署形式.jar跟war都支持,这里参考springboot参考手册学习记录 两种方式 jar springboot项目支持创建可执行Jar,参考手册第11.5. Creating an Executable Jar就有对这样的介绍,我这里充当一回搬运工(大家好,我是大自然勤劳的搬运工~~): 我们通过创建一个完全自包含的可执行jar文件来完成我们的示例,该文件可以在生产环境中运行.可执行jar(有时称为“胖jar”)是包含编译类和代码需要运行的…
仅适用IDEA中,eclipse中不需要设置 一.开启idea自动make功能 1 - Enable Automake from the compiler PRESS: CTRL + SHIFT + A TYPE: make project automatically PRESS: Enter Enable Make Project automatically feature 2 - Enable Automake when the application is running PRESS: C…
SpringBoot系列之外部配置用法简介 引用Springboot官方文档的说法,官方文档总共列举了如下用法: 1.Devtools global settings properties on your home directory (~/.spring-boot-devtools.properties when devtools is active). 2.@TestPropertySource annotations on your tests. 3.properties attribut…
tomcat实现热部署的配置 我们实现热部署后,自然就可以通过maven操作tomcat了,所以就需要maven取得操作tomcat的权限,现在这一步就是配置tomcat的可操作权限. 进入tomcat安装目录 #进入tomcat安装目录 cd /usr/local/devlop/tomcat #进入conf文件夹修改tomcat-users.xml vim conf/tomcat-users.xml #按shift + g 跳到配置文件最后 #在</tomcat-users>前加入之后的…