码迷,mamicode.com
首页 >  
搜索关键字:SpringBoot    ( 9666个结果)
使用Apollo动态修改线上数据源
前言 最近需要实现一个功能,动态刷新线上数据源环境,下面来使用Apollo配置中心和Spring提供的AbstractRoutingDataSource来实现。 具体实现 Apollo是携程开源的统一配置中心,和springboot无缝衔接并且不需要安装其他软件就可以直接使用,可以实时推送最新的配置 ...
分类:其他好文   时间:2019-11-27 01:07:54    阅读次数:324
在idea中编写自动拉取、编译、启动springboot项目的shell脚本
idea 开发环境搭建 "idea中安装shell开发插件" 服务器具备的条件 1. 已经安装 lsof(用于检查端口占用) 1. 已安装 git 1. 安装 maven 1. 有 java 环境 背景 代码提交到仓库后,需要在服务器上重新部署 springboot 的代码,每次自己打jar包上传到 ...
分类:编程语言   时间:2019-11-27 00:56:07    阅读次数:188
kryo高速序列化坑,springboot版本是2.2.1.RELEASE
可能是版本号不对应(我是用的springboot版本是2.2.1.RELEASE),在使用 ...
分类:编程语言   时间:2019-11-27 00:40:39    阅读次数:146
springboot整合thymeleaf——引用静态资源
原html src="/css/index.css" thymeleaf中,th:src="@{/css/index.css}" ...
分类:编程语言   时间:2019-11-27 00:35:10    阅读次数:67
springboot模板
spring boot模板 spring boot分以下两个模板 1、thyme leaf模板 》 相当于html页面 2、free marker模板 Thymeleaf模板介绍 直接看代码 pom依赖 <dependency> <groupId>org.springframework.boot</ ...
分类:编程语言   时间:2019-11-27 00:32:08    阅读次数:72
springboot整合thymleaf模板引擎
thymeleaf作为springboot官方推荐使用的模板引擎,简单易上手,功能强大,thymeleaf的功能和jsp有许多相似之处,两者都属于服务器端渲染技术,但thymeleaf比jsp的功能更强大。 1. thymeleaf入门 1.1 引入坐标 <!--springBoot整合thymel ...
分类:编程语言   时间:2019-11-27 00:26:37    阅读次数:79
springboot模板
1、thymeleaf模板 2.Freemarker模板 Thymeleaf模板 首先导入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</ar ...
分类:编程语言   时间:2019-11-26 17:38:40    阅读次数:70
解决springboot乱码和window cmd乱码
@Bean public FilterRegistrationBean filterRegistrationBean() { FilterRegistrationBean registration = new FilterRegistrationBean(); CharacterEncodingFi ...
分类:编程语言   时间:2019-11-26 11:58:49    阅读次数:252
RedisTemplate操作Redis数据结构-字符串类型
SpringBoot中使用RedisTemplate执行Redis基本命令 在application.properties或application.yml文件中配置Redis spring: redis: host: 127.0.0.1 port: 6379 编写代码 package com.hea ...
分类:其他好文   时间:2019-11-26 10:43:26    阅读次数:268
天啦!竟然从来没有人讲过 SpringBoot 支持配置如此平滑的迁移
SpringBoot 是原生支持配置迁移的,但是官方文档没有看到这方面描述,在源码中才看到此模块, ,幸亏我没有跳过。看到这篇文章的各位,可算是捡到宝了,相信你继续往下看下去,定会忍不住点赞、收藏、关注。 效果 先放个效果吸引你 :) 从 SpringBoot 版本开始,配置服务上下文,不支持 ,而 ...
分类:编程语言   时间:2019-11-26 09:14:22    阅读次数:79
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!