
SpringBoot
JeffCoding
热爱移动互联网,热爱安卓,热爱Java
展开
-
Spring Boot项目部署到外部Tomcat服务器
前言Spring Boot项目一般都是内嵌tomcat或者jetty服务器运行,很少用war包部署到外部的服务容器,即使放到linux中,一般也是直接启动Application类,但是有些时候我们需要部署到外部的服务器,这对于Spring Boot来说却有点麻烦部署步骤一、 修改pom首先把package改为war<packaging>war</packaging>由于spring-boot-原创 2017-04-27 23:33:52 · 9951 阅读 · 0 评论 -
Thymeleaf 常用属性
文章主目录th:actionth:eachth:fieldth:hrefth:idth:ifth:includeth:fragmentth:objectth:srcth:replaceth:textth:value 如需了解Thymeleaf 基本表达式,请参考《Thymeleaf 基本表达式》一文 回到顶部th:action转载 2017-04-28 00:16:41 · 887 阅读 · 0 评论 -
SpringBoot自动化配置原理
一、@EnableAutoConfigurationSpringBoot的自动化配置原理,首先是从@SpringBootApplication开始的,这个注解是一个组合注解,核心功能时由@EnableAutoConfiguration提供的EnableAutoConfiguration@Target({ElementType.TYPE})@Retention(RetentionPolicy.RUN原创 2017-08-15 00:27:07 · 4014 阅读 · 0 评论 -
解决SpringBoot 整合 FreeMaker,不能js,css静态资源的问题
在配置文件中加上:#设定静态文件路径,js,css等spring.mvc.static-path-pattern=/static/**原创 2018-01-05 11:03:48 · 7931 阅读 · 2 评论