随笔分类 -  springboot

springboot学习笔记
摘要:zookeeper的启动: ./zkServer.sh start 连接zookeeper: ./zkCli.sh 查看节点: ls / 临时关闭linux防火墙centOS6: /etc/init.d/iptables stop 注意:本案例是基于springboot1.5.12版本,spring 阅读全文
posted @ 2020-03-18 18:33 lxw-all 阅读(201) 评论(0) 推荐(0)
摘要:注解:@EnableWebSecurity WebSecurityConfigurerAdapter:自定义Security策略 AuthenticationManagerBuilder:自定义认证策略 HttpSecurity配置登陆、注销功能 官方文档:https://spring.io/gui 阅读全文
posted @ 2020-03-18 17:08 lxw-all 阅读(273) 评论(0) 推荐(0)
摘要:异步任务: @EnableAysnc、@Aysnc 定时任务: @EnableScheduling、@Scheduled 邮件任务: pom: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org 阅读全文
posted @ 2020-03-18 12:49 lxw-all 阅读(135) 评论(0) 推荐(0)
摘要:1、理论知识 rabbitmq交换机的类型: direct:消息中的路由键(routing key)如果和 Binding 中的 bindingkey 一致, 交换器就将消息发到对应的队列中。它是完全匹配、单播的模式。 fanout:每个发到 fanout 类型交换器的消息都会分到所有绑定的队列上去 阅读全文
posted @ 2020-03-17 20:35 lxw-all 阅读(279) 评论(0) 推荐(0)
摘要:springboot缓存相关 阅读全文
posted @ 2020-03-17 17:34 lxw-all 阅读(235) 评论(0) 推荐(0)
摘要:springboot初步了解 阅读全文
posted @ 2020-03-16 22:24 lxw-all 阅读(124) 评论(0) 推荐(0)