摘要:
参考文章:https://blog.csdn.net/BThinker/article/details/104647492 阅读全文
摘要:
// 获取 ActionForm 表单数据 UserActionForm uForm = (UserActionForm) form; // 构造一个User对象 User user = new User(); // 赋值(部分 ==》 整体) BeanUtils.copyProperties(uF 阅读全文
摘要:
PageInfo(github) 导入依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.4.2</ve 阅读全文
摘要:
本质:是否提供并使用了改变自身方法的引用类型 参考文章:https://developer.aliyun.com/article/378196 阅读全文
摘要:
转载文章:https://developer.aliyun.com/article/339309 阅读全文
摘要:
@Autowired是根据类型进行注入,容器中只能有一个该类型的实例; @Resource是根据名称进行注入,容器中一种类型可以存在多个实例; @Bean("defaultKafka") public KafkaTemplate<Integer, String> defaultKafkaTempla 阅读全文
摘要:
坑 1、在windows里安装的kafka相关命令一定要是bin\windows目录下 // 正确示例 .\bin\windows\kafka-topics.bat --bootstrap-server localhost:9092 --list // 错误示例 .\bin\kafka-topics 阅读全文
摘要:
1、一般来说@RequestParam是从url中获取参数,配合GET请求,键值对类型;@RequestBody是从请求体中获取参数,配合POST请求; 参考文章:https://blog.csdn.net/han1140521792/article/details/97919012 https:/ 阅读全文
摘要:
1、查看项目目录,是否存在.git文件夹(若存在则删除) 2、创建一个新的git仓库 3、add后文件会变绿 4、commit代码 5、设置远程仓库地址 6、推送代码至远程仓库(一般来说都要新pull再push,此处是因为我们远程仓库为空) 阅读全文
摘要:
端口介绍 1883:MQTT 协议端口 8084:MQTT/SSL 端口 8083:MQTT/WebSocket 端口 8080:HTTP API 端口 18083:Dashboard 管理控制台端口 相关配置文件 docker-compose.yml文件 version: '3' services 阅读全文