ICode9

精准搜索请尝试: 精确搜索
  • 探究如何实现AI集群2022-04-12 02:01:57

    第一种,自行实现 参考了一下一个unity项目的阵列实现。 https://github.com/Matthew-J-Spencer/Formations 第二种用商城提供的现成的工具 接下来是自己造轮子的时间了。 具体的并没有按这来写,实际的核心代码如下 TArray<FVector> FormationFactory::GetPoints(FVector orignPost

  • SpringBoot 文件上传超时解决2022-04-07 14:34:07

    方案一: spring: servlet: multipart: enabled: true max-file-size: 10MB max-request-size: 10MB 方案二: @Configuration public class MultipartConfig { @Bean public MultipartConfigElement multipartConfigElement() { Multipar

  • Mac环境下RabbitMq安装与测试教程2022-04-06 20:04:31

    https://www.cnblogs.com/yihuihui/p/9095130.html Mac环境下RabbitMq安装与测试教程   RabbitMq安装与测试教程 Installing on Mac I. 安装 123456789 brew install rabbitmq## 进入安装目录cd /usr/local/Cellar/rabbitmq/3.7.5# 启动brew services start rabbitmq

  • 如何修改文件Root of Spring boot2嵌入式tomcat2022-04-04 00:37:19

    如何修改内置tomcat的文档根目录而不是使用“src / main / webapp”  1, 第一个方案 添加server.tomcat.document-root在application.properties @Value("${server.tomcat.document-root:}") private String documentRoot; 复制@Bean public WebServerFactoryCustomize

  • java.sql.SQLException: org.postgresql.Driver 错误处理2022-03-25 18:02:33

      尝试引入maven依赖   <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>42.1.1</version></dependency>//ps:注意当前版本不一定是最新版本   报错信息: 2022-03-25 17:47:38.514 ERROR 34876 ---

  • 升级SpringCloudAlibaba报ReferenceAnnotationBeanPostProcessor.setClassValuesAsString(Z)V2022-03-21 16:35:12

    依赖版本: spring-boot:2.3.12.RELEASE spring-cloud-alibaba:2.2.7.RELEASE spring-cloud:Hoxton.SR12 nacos:2.0.3 启动报: *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call a method that

  • 设计模式(三):Abstract Factory Pattern 抽象工厂模式2022-03-19 18:02:28

    之前我们介绍了Factory Pattern工厂模式,其较适合于只有一种类型产品的场景。但有些时候一家工厂可能会生产多种类型的产品。比如家电厂无论海尔还是美的,都会生产冰箱、洗衣机、空调等多种不同类型的产品。这个时候,就可以应用我们这里所说的Abstract Factory Pattern抽象工厂

  • RestTemplate 最详解2022-03-18 21:34:45

    目录 RestTemplate 简单使用 创建 RestTemplate接口调用一些其他设置简单总结公众号推荐 在项目中,当我们需要远程调用一个 HTTP 接口时,我们经常会用到 RestTemplate 这个类。这个类是 Spring 框架提供的一个工具类。Spring 官网对它的介绍如下: RestTemplate: The original Spr

  • RabbitMQ - hello world2022-03-06 13:01:58

    .Net依赖 依赖 # nuget 安装RabbitMQ.Client​# 引入命名空间using RabbitMQ.Client hello world 生产者       1、创建控制台项目   2、构建连接参数 //创建连接的工厂(指定连接参数)var factory = new ConnectionFactory(){    HostName = "192.168.65.133",    User

  • rabbitmq工作模式---路由模式2022-03-02 22:35:23

    模式说明: 队列与交换机的绑定,不能是任意绑定了,而是要指定一个RoutingKey(路由key) 消息的发送方在向Exchange发送消息时,也必须指定消息的RoutingKey Exchange不再把消息交给每一个绑定的队列,而是根据消息的RoutingKey进行判断,只有队列的Routingkey与消息的Routingkey完全一致,才会

  • 没什么营养的笔记——如何通过合约获取DEX代币价格2022-02-28 23:58:00

    没什么营养的笔记——如何通过合约获取DEX代币价格 需求:通过A B两种代币的地址,获取A B两种代币对应的 流动性池代币(币种对代币)地址和价格 1、参数解释: address A:代币A的地址 address B:代币B的地址 FactoryAddress:交易所Factory地址 【Factory用于自动在链上按照合约模板部

  • org.springframework.beans.factory.UnsatisfiedDependencyException2022-02-28 16:05:14

    错误信息 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘indexController’: Unsatisfied dependency expressed through field ‘bookService’; nested exception is org.springframework.beans.factory. Unsatisfi

  • Caused by: java.lang.NoClassDefFoundError: org/mybatis/logging/LoggerFactory2022-02-27 19:32:14

    项目场景: 项目原来使用mybaties, 在整合mybaties-plus时. 出现错误 java.lang.NoClassDefFoundError: org/mybatis/logging/LoggerFactory 问题描述: 添加mybaties-plus坐标之后.启动报错… 坐标如下 <!--mybatis-plus--> <dependency> <groupId

  • Kafka消息失败后无限消费现象的排查2022-02-24 23:03:57

    文章目录 背景相关代码Reference 背景 项目中用到了kafka消息队列,在开发测试过程中发现了消息端设置的最大重试次数失效的情况,具体信息如下: consumer: 3partition:1maxRetryTimes:15spring-kafka: 2.2.3.RELEASEkafka-client: 2.0.1 相关代码 消费者config文件 @Configu

  • Error: No module factory available for dependency type: ContextElementDependency2022-02-24 23:00:48

    40% building 68/69 modules 1 active ...im\Web.UI.Claim\wwwroot\src\styles.scss× 「wdm」: Error: No module factory available for dependency type: ContextElementDependency at addDependency (D:\project\BPMS\BPMS_NEW\bpmsapi3\Claim\Web.UI.Claim\w

  • C# 使用RammitMQ2022-02-22 10:00:23

    以下内容选自:https://www.cnblogs.com/mq0036/p/11726733.html 前言 我在刚接触使用中间件的时候,发现,中间件的使用并不是最难的,反而是中间件的下载,安装,配置才是最难的。 所以,这篇文章我们从头开始学习RabbitMq,真正的从头开始。 关于消息队列 其实消息队列没有那么神秘,我们这样想一

  • 加载、读取资源的方式(底层都是以流的方式获取资源,具体是通过类加载器进行加载,通过流的方式进行读取,从而获取资源)2022-02-19 01:02:43

    ❀ 通过类加载器进行加载,通过流的方式进行读取,从而获取资源 1、java的jdk内置的加载方式: 通过线程Thread(lang包的)获取到类加载,然后以流的方式获取资源: InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("db.properties"); /*

  • 关于JedisPoolConfig的配置注意事项2022-02-16 19:31:56

    当我们使用JedisPool 创建redis的连接对象时,通常会传入GenericObjectPoolConfig对象。这个对象实际上是rg.apache.commons.pool2.impl apache提供的对象池工具包里的配置,实际上这也可以说明jedis的连接池是依托于apache提供的对象池的方式来创建连接对象。今天我主要说一下Generic

  • 本地部署RabbitMQ2022-02-10 11:01:36

    原文链接:https://blog.csdn.net/ynbnzh/article/details/87006946 一.下载RabbitMQ管理工具 1.windows下载地址: http://www.rabbitmq.com/install-windows.html 2.Linux,BSD, UNIX下载地址: ①:Debian and Ubuntu http://www.rabbitmq.com/install-debian.html#downloads ②:RHEL, C

  • 027_Quartz定时任务框架2022-01-30 10:00:31

    1. Quartz的介绍 2. Quartz的使用思路  2.1. job任务: 你要做什么事? 2.2. Trigger触发器: 你什么时候去做? 2.3. Scheduler任务调度: 你什么时候需要去做什么事? 3. Quartz的基本使用方式 3.1. 使用maven构建名叫quartz项目   3.2. Quartz坐标  3.3. pom.xml  <project x

  • Mybatis-Logging2022-01-29 20:01:00

    Logging MyBatis provides logging information through the use of an internal log factory. The internal log factory will delegate logging information to one of the following log implementations: SLF4J Apache Commons Logging Log4j 2 Log4j (deprecated since 3

  • org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘‘2022-01-26 14:00:35

    1、遇到的问题 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'paymentController': Injection of autowired dependencies failed; 原因:服务单词写错了  2、解决办法 修改正确即可,如下图: 附件: org.springframework.beans.facto

  • 工厂模式(三)2022-01-26 10:02:35

    文章目录 6.创建者模式之工厂模式6.1 简单工厂模式6.2 工厂方法模式6.3 抽象工厂模式6.4 工厂模式在 JDK-Calendar 应用的源码分析6.5 工厂模式小结 6.创建者模式之工厂模式 6.1 简单工厂模式 6.1.1 看一个具体的需求 看一个披萨的项目:要便于披萨种类的扩展,要便于维护

  • Code transformation With Spoon Presentation2022-01-26 02:04:48

    问题 代码转换需要越来越多的库 JDT 用于Eclipse相关开发 read, generate, analyse and transform source code API和meta model难以理解 APT(Annotation Processing Tool) SUN,之后由Oracle开发 在开源软件中广泛使用,现代化 meta model受限, 不能进行代码转换 Spoon介绍 更

  • RestTemplate配置及如何支持https接口的访问2022-01-25 14:35:03

    配置 @Configuration public class RestTemplateConfig { @Bean public RestTemplate restTemplate() { SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory(); factory.setConnectTimeout(30 * 1000); factory

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

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

ICode9版权所有