![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 75
宇内大猫
海内存知己,天涯若比邻。十几年了就是戒不掉敲代码的习惯!
展开
-
5、springboot集成nacos,完成配置服务
一、nacos介绍nacos是什么?简单点说Nacos有两个核心功能:1、管理微服务。2、做统一的系统配置管理。1、下载git clone https://github.com/alibaba/nacos.git2、编译mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U 编译需要一段时间,编译打包后的界面如下:编译打包后,生成了如下目录:distribution\target启动进入目录(或者把nacos-se原创 2022-02-25 18:59:12 · 2878 阅读 · 0 评论 -
4、springboot2.6集成Restful服务
我们用redis做数据库 ,使用springboot2.6集成restful服务。前提:配置好了redis1、增加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>我现在完整的pom.xml文件,也原创 2022-02-08 15:29:53 · 701 阅读 · 0 评论 -
3-springboot集成redis
最简单的代码案例来讲解springboot。redis在springboot项目中一般是用RedisTemplate ,注解到类中。如下:@Autowiredprivate RedisTemplate redisTemplate;而如果要用这个RedisTemplate ,需要进行配置1、 pom.xml增加依赖 <dependency> <groupId>org.springframework.data</groupId> &原创 2022-02-08 15:11:07 · 487 阅读 · 0 评论 -
2-springboot使用redis
版本redis6.2.6截止目前,redis最新版本是6.2.6 。redis6的最大特性应该是增加了ACLS,也就是可以增加访问的用户名并设置权限了,有点像mysql数据库不光是root用户,还可以增加其它的用户及权限。pom.xml增加如下依赖:前提:springboot项目已经创建好。 <dependency> <groupId>org.springframework.data</groupId> <artifactId&原创 2022-02-07 22:58:53 · 2315 阅读 · 0 评论 -
1-idea社区版创建springboot项目
springboot从零开始原创 2022-02-06 16:18:36 · 2459 阅读 · 1 评论