ICode9

精准搜索请尝试: 精确搜索
  • ES elasticserch2022-07-20 22:36:33

    ES elasticserch elasticserch 是一个开源的分布式搜索引擎,可以用来实现搜索,日志统计,分析,系统监控等功能 elastic stack (ELK)是以elasticsearch为核心的技术栈,包括beats,Logstash,kibana,elasticsearch Lucene 是Apache的开源搜索引擎类库,提供了搜索引擎的核心API 正向索引和

  • Gateway 网关2022-07-20 22:33:01

    Gateway gateway功能: 身份认证和权限校验 服务路由(访问哪一个服务),负载均衡(服务之间Ribbon) 对用户请求限流 gateway的技术实现: gateway zuul *zuul是基于servlet的实现,属于阻塞式编程, *SpringCloudGateway则是基于Spring5中提供的WebFlux,属于响应式编程的实现,具备更

  • Scala学习第一天(Hello world)2022-07-20 20:05:16

    一、Scala介绍 1. Scala概念 Scala 是 Scalable Language 的简写,是一门多范式的编程语言 联邦理工学院洛桑(EPFL)的Martin Odersky于2001年基于Funnel的工作开始设计Scala。 Scala是把函数式编程思想和面向对象编程思想结合的一种编程语言。 大数据计算引擎Spark由Scala编写 2. Scal

  • 自建redis迁移云报错2022-07-20 17:35:53

    java服务开始使用的自建的redis 将其迁移到腾讯云redis时报错 如下: 14:22:56.048 [localhost-startStop-1] ERROR o.s.web.context.ContextLoader:351 - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name

  • SpringMvc里的RequestBodyAdviceAdapter使用问题2022-07-20 15:34:02

    一、问题 之前写过一篇《springboot修改接口入参出参实现入参加密出参解密》,代码一直跑着都没问题,但是最近发现入参特别长的时候,inputMessage.getBody() 这段代码拿不到完整的入参,会被截断。 看了下源码,好像默认它转换的时候就截断了。 二、解决方法 看了下源码,RequestBodyAdviceA

  • 配置自定义数据源2022-07-20 11:33:56

    package com.huawei.metrics.config; import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSessionFactoryBean; import org.mybatis.spring.SqlSessionTemplate; import org.mybatis.spring.annotation.MapperScan; import org.springframew

  • spark streaming-DS,DF,RDD相互转换,submit,数据落盘2022-07-20 10:05:26

    spark streaming DS转成DF写代码 package com.shujia.spark.streaming import org.apache.spark.SparkContext import org.apache.spark.rdd.RDD import org.apache.spark.sql.{DataFrame, SparkSession} import org.apache.spark.streaming.dstream.ReceiverInputDStream import

  • Record has Long.MIN_VALUE timestamp (= no timestamp marker). Is the time characteristic set to 2022-07-19 22:34:05

     问题: Caused by: java.lang.RuntimeException: Record has Long.MIN_VALUE timestamp (= no timestamp marker). Is the time characteristic set to 'ProcessingTime', or did you forget to call 'DataStream.assignTimestampsAndWatermarks(...)'?   E

  • Bun JavaScript runtime All In One2022-07-19 15:35:43

    Bun JavaScript runtime All In One Bun is a fast all-in-one JavaScript runtime Bundle, transpile, install and run JavaScript & TypeScript projects — all in Bun. Bun is a new JavaScript runtime with a native bundler, transpiler, task runner and npm cl

  • RabbitMQ消费者消失与 java OOM2022-07-19 15:01:07

    原因: 下午先是收到钉钉告警有一个消费者系统任务积压, 当时以为就是有范围上量没有当回事,后来客服群开始反馈说有客户的数据没有生成。这个时候查看mq的后台,发现任务堆积数量还是很多。 这个时候登录一台消费者系统查看日志,发现OOM [2022-07-09 16:40:34.640] [ERROR] [org.spring

  • solr漏洞审计2022-07-19 10:03:09

    CVE-2017-12629 XXE Lucene包含了一个查询解析器支持XML格式进行数据查询,并且解析xml数据时,未设置任何防御措施,导致我们可引入任意恶意外部实体 而Solr由于使用Lucenne作为核心语义分析引擎,因此受到影响 漏洞点: org.apache.lucene.queryparser.xml.CoreParser#parseXML 此处为解析

  • 解决CentOS6停止更新支持后yum源失效2022-07-19 09:36:48

      解决CentOS6停止更新支持后yum源失效 https://vault.centos.org/ wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo yum makecache  

  • org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'multipart/form-data2022-07-18 22:31:10

    报错信息 org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'multipart/form-data;boundary=--------------------------423557816345430760392485;charset=UTF-8' not supported at org.springframework.web.servlet.mvc.method.annotation

  • RabbitMQ 在Spring Boot上的使用2022-07-18 22:02:47

      1.pom <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId>

  • 03-SpringAMQP入门2022-07-18 20:00:30

    三、SpringAMQP SpringAMQP是基于RabbitMQ封装的一套模板,并且还利用SpringBoot对其实现了自动装配,使用起来非常方便 SpringAMQP的官方地址 https://spring.io/projects/spring-amqp AMQP Spring AMQP SpringAMQP提供了三个功能 自动声明队列、交换机及其绑定关系 基于注

  • Ruby-Sass 安装2022-07-18 15:04:10

    安装ruby sass是基于ruby的环境,所以安装sass之前需要安装ruby。rudy windows 的安装包官方下载地址是:https://rubyinstaller.org/downloads/ ruby -v //查看ruby是否安装成功 安装sass gem install sass //安装sass //网络慢可使用淘宝镜像安装 - $ gem sources --remove htt

  • Ambiguous collection type for property 'categories'. You must specify 'javaType'2022-07-18 15:02:53

    1.具体报错信息: Caused by: org.apache.ibatis.builder.BuilderException: Ambiguous collection type for property 'categories'. You must specify 'javaType' or 'resultMap'. at org.apache.ibatis.builder.xml.XMLMapperBuilder.validate

  • AJAX请求400,类型转换异常ConversionFailedException2022-07-18 14:34:26

    2022-07-18 问题:前端发送ajax请求,http响应码400,后端tomcat服务报ConversionFailedException: Failed to convert from type [java.lang. String] to type [java.util. Date] 原因:某个字段前端传递的类型是String,而后端接收的是Date类型,类型转换错误 解决: 方案一:在Controll

  • SpringBoot单元测试2022-07-18 14:03:52

    <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependenc

  • SpringBoot(12)使用控制器通知2022-07-18 00:03:04

    控制器通知   在编写代码时,需要对异常进行处理。进行异常处理的普通的代码是try-catch结构。但在开发业务时,只想关注业务正常的代码,对于catch语句中的捕获异常,希望交给异常捕获来处理,不单独在每个方法中编写。这样不仅可以减少冗余代码,还可以减少因忘记写catch而岀现错误的概率

  • npm 更换淘宝镜像源2022-07-17 23:10:33

    npm install -g cnpm --registry=https://registry.npm.taobao.org 切换源 // 淘宝源 npm config set registry https://registry.npm.taobao.org // 默认源 npm config set registry https://registry.npmjs.org // 查看当前源 npm config get registry

  • Data-Stash数据导出组件疑问解答2022-07-17 13:03:35

    1、是否支持多群组数据导出? 支持,通过system.groupId = 1,2,3配置。为每一个群组都创建一个线程进行群组区块数据的获取、解析、保存。各类区块数据表都以群组号为前缀区分如:g1_block_detail_info,g2_block_detail_info 。而以数据仓库获取区块数据的形成不支持多群组数据导出。 2

  • restTemplate get请求传body2022-07-17 10:36:09

    一、jari包 <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.2</version> </dependency>   二、定义HttpComponentsClientRestfulHttpRequestFactory

  • SpringBoot中如何使用配置禁用swagger呢?2022-07-16 16:34:30

    转自: http://www.java265.com/JavaCourse/202204/2931.html SpringBoot:         Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化新Spring应用的初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。通过这种方

  • java通用post请求2022-07-16 16:01:00

    package com.example.climbnumber.yzm; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apa

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有