会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
colfish
新随笔
联系
管理
2023年7月26日
RabbitMQ由于x-message-ttl设置与代码不一致导致declareQueue时IO异常
摘要: ## 具体异常: ``` log Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method(reply-code=406, reply-text=PRECONDITI
阅读全文
posted @ 2023-07-26 10:22 colfish
阅读(623)
评论(0)
推荐(0)
2023年7月24日
内部调用自定义注解方法,AOP不生效
摘要: 之前遇到过的@CacheEvict注解和@Transactional注解内部调用不生效,也是同样的原因 自定义注解 @Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documen
阅读全文
posted @ 2023-07-24 17:42 colfish
阅读(863)
评论(0)
推荐(0)
2023年7月18日
无效重复类定义错误:Invalid duplicate class definition of class xxxx
摘要: ### Description ``` log startup failed: /xxxx/OrderFixFile.groovy: 5: Invalid duplicate class definition of class OrderFixFile : The source /xxxx/Orde
阅读全文
posted @ 2023-07-18 17:19 colfish
阅读(250)
评论(0)
推荐(0)
2021年12月1日
url里中文转ASCII编码
摘要: String url = "https://baidu.com/天下无敌-喜羊羊.jpg?code=测试"; System.out.println(URI.create(url).toASCIIString()); 结果: https://baidu.com/%E5%A4%A9%E4%B8%8B%E
阅读全文
posted @ 2021-12-01 18:01 colfish
阅读(212)
评论(0)
推荐(0)
2021年11月29日
创建修改视图
摘要: 创建视图 跨数据库创建视图 CREATE VIEW <视图名> AS <SELECT语句> CREATE VIEW `student_view` AS ( SELECT a.`id` AS `id`, a.create_time AS create_time, a.modify_time AS mo
阅读全文
posted @ 2021-11-29 17:52 colfish
阅读(64)
评论(0)
推荐(0)
2021年11月21日
groovy生成Xml报文
摘要: 使用MarkupBuilder创建xml报文的builder,参数为Writer对象 @Test void test1() { def writer = new StringWriter() def builder = new MarkupBuilder(writer) builder.mkp.xm
阅读全文
posted @ 2021-11-21 23:13 colfish
阅读(210)
评论(0)
推荐(0)
2021年10月23日
alpha-beta剪枝算法
摘要: 参考链接-机器之心 人机博弈是人工智能的重要分支,人们在这一领域探索的过程中产生了大量的研究成果,而极小化极大算法(minimax)是其中最基础的算法,它由Shannon在1950年正式提出。Alpha-beta剪枝的本质就是一种基于极小化极大算法的改进方法。 在人机博弈中,双方回合制地进行走棋,己
阅读全文
posted @ 2021-10-23 12:23 colfish
阅读(1288)
评论(0)
推荐(0)
2021年8月9日
CSS弹性盒子
摘要: 在响应式 Web 设计中,UI 布局必须适配不同尺寸的设备。CSS3 引入了 Flexible Box,简称 flexbox(弹性盒子),它特别适合用来创建弹性的页面布局。弹性布局以一种可预见的方式排列元素,使其适用于不同尺寸的设备。
阅读全文
posted @ 2021-08-09 15:46 colfish
阅读(201)
评论(0)
推荐(0)
公告