![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
stateCelebrateking
这个作者很懒,什么都没留下…
展开
-
springboot+webmagic+ChromeDriver
版本不一致,更换新的版本。原创 2022-12-10 12:11:50 · 1287 阅读 · 0 评论 -
Springboot整合redis切库问题
切库问题由于工作业务需求,需要在单机redis中做切库处理。一般来说,redis数据库有16个数据库,而且有对应的索引,分别为0-15,如下图目前的项目时Springboot2.0.5搭建的,当前已经有一个redis工具类了。但是不满足需求,需要修改。旧版RedisUtilsapplication.yml配置spring: redis: open: true # 是否开启redis缓存 true开启 false关闭 database: 0 host:转载 2020-08-12 10:42:32 · 930 阅读 · 2 评论 -
Idea 中 Maven 编译,打包都正常,但run 或者debug 的时候 就是 显示 包***不存在
解决 方案一:最近开发中,发现一个奇怪的问题,用idea 的maven ,编译,打包都能够成功,项目中也没有爆红出错,但是你运行/调式SpringBoot的启动类的时候,会提示包**不存在。网上找了很多解决方案 都没成功。最后终于成功了,特此记录分享下:Idea Terminal 中 输入mvn idea:idea File-Invadiate Cache/Restart ,清除缓存,重启来源:https://blog.csdn.net/weixin_29207913/article/deta.原创 2020-08-07 09:24:18 · 1589 阅读 · 0 评论 -
Could not find artifact ** and ‘parent.relativePath‘ points at no local POM @ line 5, column 10
<parent> <groupId>父项目的groupId</groupId> <artifactId>父项目的artifactId</artifactId> <version>父项目的version</version> <relativePath>父项目的pom.xml文件相对路径</relativePath> <!-- loo.原创 2020-08-06 16:13:42 · 1660 阅读 · 0 评论 -
IDEA SpringBoot Maven 父子 项目
1.创建 普通 的 一个 springboot修改Project type 为 Maven POM继续 完成原创 2020-08-05 14:53:44 · 416 阅读 · 1 评论 -
springboot mongodb
pom.xml 导入 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency>application.propertiesspring.data.mongodb.uri=mongodb://127.0..原创 2020-08-03 14:32:18 · 240 阅读 · 0 评论 -
mongoDB 示例 :使用mongoTemplate进行Aggregation聚合查询
需求:在订单表中,根据buyerNick分组,统计每个buyerNick的电话、地址、支付总金额以及总商品数,返回结果是CustomerDetail。/* * project:列出所有本次查询的字段,包括查询条件的字段和需要搜索的字段; * match:搜索条件criteria * unwind:某一个字段是集合,将该字段分解成数组 * group:分组的字段,以及聚合相关查询 * sum:求和(同sql查询) * count:数量(同sql查询) * ..转载 2020-07-16 14:16:23 · 2747 阅读 · 0 评论 -
Spring Cloud GateWay 路由转发规则介绍 简单实用
Spring在因Netflix开源流产事件后,在不断的更换Netflix相关的组件,比如:Eureka、Zuul、Feign、Ribbon等,Zuul的替代产品就是SpringCloud Gateway,这是Spring团队研发的网关组件,可以实现限流、安全认证、支持长连接等新特性。Spring Cloud GatewaySpring Cloud Gateway是SpringCloud的全...转载 2020-04-06 12:35:08 · 1336 阅读 · 0 评论 -
springboot 手动 程序生成 配置信息
在一些特定的需求下,我们在配置表中 设置的 数据都太固定了,如果在 系统启动之前 去随机生成,或者写一些 配置数据 public static void main(String[] args) { SpringApplication springApplication = new SpringApplication(App.class); Properties p = n...原创 2020-03-20 15:14:59 · 101 阅读 · 0 评论 -
spring boot dubbo 的 异常记录。
基本搭建和基础配置 就不再这继续复制粘贴了。####################################万恶的分割线#########以下为遇到的一些问题。问题说明: 在原本已经调好的情况下,新增了一个服务器接口,把二个服务器接口提到了一个新的包下面,然后消费者 把对应的 调用地方,写到了各自的包下面。导致 一直不 能获取到服务提供者。dubbo 的管理页面上...原创 2019-03-13 14:10:48 · 253 阅读 · 0 评论