摘要: 介绍两种方式集成,一般都是使用application.prperties文件来配置。 1,使用springboot配置文件(application.properties)集成。 2,使用配置类集成。 SpringBoot提倡基于java的配置,尽管你可以使用XML源调用SpringApplicati 阅读全文
posted @ 2020-03-16 22:55 赖伟春 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1,方式一 IDEA配置 步骤一:点击 edit configurations 步骤二:点击 Environment 步骤三:点击 working directory 选择第三个,点击应用ok。 2,方式二:添加一个配置文件。 1 @Configuration 2 public class Glob 阅读全文
posted @ 2020-03-14 15:20 赖伟春 阅读(761) 评论(0) 推荐(0) 编辑
摘要: redis的安装与启动可参考前一篇文章:https://www.cnblogs.com/268lwc/p/12486284.html redis安装成功后,默认是没有设置密码的启动redis-cli,不需要认证,可直接进行操作,如下: 1 2 3 [root@izwz991stxdwj560bfma 阅读全文
posted @ 2020-03-13 14:32 赖伟春 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 一、安装redis 第一步:下载redis安装包 wget http://download.redis.io/releases/redis-4.0.6.tar.gz [root@iZwz991stxdwj560bfmadtZ local]# wget http://download.redis.io 阅读全文
posted @ 2020-03-13 14:28 赖伟春 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 下载 MySQL 源的安装包 wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm 安装 MySql 源 yum -y install mysql57-community-release-el7-11.no 阅读全文
posted @ 2020-03-13 14:22 赖伟春 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 相信从eclipse转idea的开发人员,和 idea相比都会挺喜欢eclipse的热部署功能,因为改了前端页面又要重新发布实在太麻烦。 在SpringBoot我们可以使用 spring-boot-devtools 来实现热部署功能。 spring-boot-devtools 是一个为开发者服务的一 阅读全文
posted @ 2020-03-12 11:59 赖伟春 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1,新建SpringBoot项目 2,导入所需依赖(我这里直接贴pom文件咯) 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http: 阅读全文
posted @ 2020-03-12 11:31 赖伟春 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 1,新建SpringBoot项目 2,导入所需的依赖 1 //web支持 2 <dependency> 3 <groupId>org.springframework.boot</groupId> 4 <artifactId>spring-boot-starter-web</artifactId> 5 阅读全文
posted @ 2020-03-10 15:58 赖伟春 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 一,pom文件 1.父项目 我们的父项目:<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.5.RELEASE</ 阅读全文
posted @ 2020-03-10 11:55 赖伟春 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 一,简介 Spring boot 来简化Spring应用的开发,约定大于配置,去繁从简,just run 就能创建一个独立,产品级别的应用。 背景: J2EE笨重的开发,繁多的配置,低下的开发效率,复杂的部署流程,第三方技术集成困难。 解决: “Spring全家桶” 时代。 Spring boot 阅读全文
posted @ 2020-03-09 21:11 赖伟春 阅读(208) 评论(0) 推荐(0) 编辑