码迷,mamicode.com
首页 >  
搜索关键字:SpringBoot    ( 9666个结果)
SpringBoot项目属性配置
如果使用IDEA创建Springboot项目,默认会在resource目录下创建application.properties文件,在SpringBoot项目中,也可以使用yml类型的配置文件代替properties文件,下面我们具体介绍: 1.应用配置文件(.properties或.yml): 1. ...
分类:编程语言   时间:2017-10-25 21:40:38    阅读次数:250
[springBoot系列]--springBoot注解大全
[springBoot系列]--springBoot注解大全 一、注解(annotations)列表 @SpringBootApplication:包含了@ComponentScan、@Configuration和@EnableAutoConfiguration注解。其中@ComponentScan ...
分类:编程语言   时间:2017-10-25 21:26:02    阅读次数:170
springboot 的常用操作
1. 使用@Value注解,可以直接将属性值注入到你的beans中,并通过Spring 的Environment抽象或绑定到结构化对象来访问。 2. 配置随机值 3. @ConfigurationProperties 4.Profiles Spring Profiles提供了一种隔离应用程序配置的方 ...
分类:编程语言   时间:2017-10-25 19:45:27    阅读次数:171
Spring data mongodb @CreatedBy@LastModifiedBy@CreatedBy@LastModifiedBy SpringSecurityAuditorAware,只记录用户名
要在Spring data mongodb 中使用@CreatedBy@LastModifiedBy@CreatedBy@LastModifiedBy 这四个注解 必须实现 SpringSecurityAuditorAware 官方代码 添加配置文件 XML SpringBoot 配置方式 使用注解 ...
分类:数据库   时间:2017-10-25 16:41:50    阅读次数:381
springboot中starters 提供的常用的依赖
1. 名字有什么含义:所有的starters遵循一个相似的命名模式: spring-boot-starter-* ,在这里 * 是一种特殊类型的应用程序。 该命名结构旨在帮你找到需要的starter。很多IDEs集成的Maven允许你通过名称搜索依赖。例如,使用相应的Eclipse或STS 插件,你 ...
分类:编程语言   时间:2017-10-24 16:18:46    阅读次数:564
spring boot框架学习学前掌握之重要注解(4)-通过注解方式读取外部资源配置文件2
本节主要内容:1:思考问题:怎么读取多个配置文件,如果文件不存在怎么办2:配置数据库连接池声明:本文是《凯哥陪你学系列-框架学习之springboot框架学习》中springboot框架学习学前掌握之重要注解(4)-通过注解方式读取外部资源配置文件2。欢迎大家提意见一:上节思考问题:1:..
分类:编程语言   时间:2017-10-24 16:13:04    阅读次数:183
centos7环境下搭建redis及springboot连接集成
1.官方下载安装文件redis-4.0.2版本、解压、编译(gcc、tcl),make test 没问题则编译成功 2.切换到redis目录,执行src/redis-server redis.conf & redis.conf内容 注意2点 a)注释bind 127.0.0.1 b)关闭保护模式,允 ...
分类:编程语言   时间:2017-10-24 11:39:14    阅读次数:188
springboot中配置主从redis
测试redis的主从配置 redis实例 文件夹名称如下 redis.conf文件 master的redis.conf文件(其余是默认设置) slaver1的redis.conf文件 slaver2的redis.conf文件 这个主从服务器就配置好了。 启动服务(命令大致如此) 测试一下主从复制的功 ...
分类:编程语言   时间:2017-10-24 11:27:22    阅读次数:451
springboot 热部署
1 pom文件添加 2 idea配置 3 option+commond+shift+/ ...
分类:编程语言   时间:2017-10-23 17:48:46    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!