摘要: MultiValueMap<String, Object> obj = new LinkedMultiValueMap<>();obj.add("searchContent",searchContent);obj.add("pageNum", "0"); // 分页页码obj.add("pageSi 阅读全文
posted @ 2022-07-20 15:05 杨吃羊 阅读(1334) 评论(0) 推荐(0)
摘要: 拦截器代码: package com.seeyii.base.interceptor;import com.seeyii.web.market.service.impl.MarketServiceImpl;import org.apache.ibatis.executor.ErrorContext; 阅读全文
posted @ 2022-07-11 15:50 杨吃羊 阅读(410) 评论(0) 推荐(0)
摘要: SELECT CONCAT( 'ALTER TABLE `', TABLE_NAME, '` ', 'ADD ', IF ( NON_UNIQUE = 1, CASE UPPER( INDEX_TYPE ) WHEN 'FULLTEXT' THEN 'FULLTEXT INDEX' WHEN 'SP 阅读全文
posted @ 2022-06-29 18:18 杨吃羊 阅读(468) 评论(0) 推荐(0)
摘要: 分布式系统通信的两种方式: 1 远程调用,2 借助消息队列 消息队列的优势: 1 应用解耦: 情况1:如果A系统直接调B,C系统,如果B/C系统报错,对A系统也有影响;情况2:如果要加个D系统,对于直接调用的方式需要修改A系统的代码,对于用消息队列的方式不用改A系统代码,D系统直接从消息队列取消息就 阅读全文
posted @ 2022-06-29 13:38 杨吃羊 阅读(69) 评论(0) 推荐(1)
摘要: 一:自定义监听类 @Component public class RabbitListener implements ApplicationListener<ApplicationStartedEvent> { @Override public void onApplicationEvent(App 阅读全文
posted @ 2022-05-10 13:44 杨吃羊 阅读(4842) 评论(0) 推荐(0)
摘要: 将导出列表请求发送到消息队列 //查询导出次数的逻辑代码省略 JSONObject data = new JSONObject(); data .element("userId", exportRecord.getUserId()); data .element("taskId", exportRe 阅读全文
posted @ 2022-04-29 18:28 杨吃羊 阅读(484) 评论(0) 推荐(0)
摘要: <insert id="saveExportField" parameterType="com.seeyii.base.bean.ExportRecord" keyProperty="id" keyColumn="id" useGeneratedKeys="true"> INSERT INTO ex 阅读全文
posted @ 2022-04-27 13:56 杨吃羊 阅读(1649) 评论(0) 推荐(0)
摘要: java配置nebula连接代码: 官网地址:https://github.com/vesoft-inc/nebula-java/tree/master NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig(); nebulaPoolCon 阅读全文
posted @ 2022-04-25 15:38 杨吃羊 阅读(793) 评论(0) 推荐(0)
摘要: 静态代理: public interface IUser { //保存用户 void save(); } public class IUserImpl implements IUser{ @Override public void save() { System.out.println("模拟保存用 阅读全文
posted @ 2022-04-21 16:19 杨吃羊 阅读(84) 评论(0) 推荐(0)
摘要: 1 searchContent= URLDecoder.decode(searchContent.replaceAll("%(![0-9a-fA-F]{2})","%25"),"UTF-8"); //这里是将encode后的%和手动输入的%做区分,把手动输入的%替换成%252 searchConte 阅读全文
posted @ 2022-04-19 15:07 杨吃羊 阅读(227) 评论(0) 推荐(0)