自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(94)
  • 收藏
  • 关注

原创 JVM

jinfo -flag MaxHeapSize 1987jinfo -flag ThreadStackSize 1987java -XX:+PrintFlagsFinal -version > flags.txtjpsjinfo -flag UseG1GC 1987jinfo -flag UseParallelGC 1987jinfo -flag UseConcMark...

2019-07-23 21:54:30 195

转载 Lombok

https://blog.csdn.net/f641385712/article/details/82081900

2019-07-14 21:28:22 184

原创 Git

git config --global user.name "longlong"git config --global user.emailgit initls -aecho "longlong" >> test.txtcat test.txtgit add test.txtgit commit -m "第二次"git statusgit rese...

2019-07-13 10:08:15 216

转载 netty微信

https://blog.csdn.net/huangpeigui/article/list/3?t=1&https://blog.csdn.net/huangpeigui/article/details/86596245

2019-06-29 17:13:38 213

原创 Mybatis

mybatis.mapper-locations=classpath:mapper/*.xmlmybatis.type-aliases-package=com.longlong.pojomybatis.type-handlers-package=com.longlong.typehandlerlogging.level.org.mybatis=DEBUG<?xml versio...

2019-06-09 15:34:06 2661

原创 JPA

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <version>2.1.5.RELEASE</version><...

2019-06-09 13:24:14 227

原创 AOP

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> <version>2.1.5.RELEASE</version></depe...

2019-06-09 10:02:58 130

原创 XML bean Spring EL

public class Squirrel implements Animal { @Override public void use() { System.out.println("AAAA"); }}<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www...

2019-06-08 13:47:05 131

原创 @Profile @Scope

@Component@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)public class ScopeBean {}@Bean(name = "dataSource")@Profile("dev")public DataSource getDevDataSource () { Properties pro...

2019-06-08 13:06:54 226

原创 @Conditional

@Bean(name = "dataSource")@Conditional(DatabaseConditional.class)public DataSource getDataSource (@Value("${database.driverName}") String driver, @Value("${database...

2019-06-08 12:33:25 594

原创 application.properties 读取

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <version>2.1.5.RELEASE</version&g...

2019-06-08 11:06:50 960

原创 spring boot bean生命周期

@Componentpublic class BussinessPerson implements Person, BeanNameAware, BeanFactoryAware, ApplicationContextAware, InitializingBean, DisposableBean { private Animal animal = null;...

2019-06-08 10:03:31 300

原创 限制访问次数

@Servicepublic class AccessInterceptor extends HandlerInterceptorAdapter{ @Autowired MiaoshaUserService userService; @Autowired RedisService redisService; @Override pu...

2019-05-26 15:46:45 870

原创 图形验证码 隐藏秒杀地址

@RequestMapping(value="/verifyCode", method=RequestMethod.GET)@ResponseBodypublic Result<String> getMiaoshaVerifyCod(HttpServletResponse response,MiaoshaUser user, @RequestParam("goodsI...

2019-05-26 15:27:26 235

原创 InitializingBean

@Controller@RequestMapping("/miaosha")public class MiaoshaController implements InitializingBean {private HashMap<Long, Boolean> localOverMap = new HashMap<Long, Boolean>();/** * 系统...

2019-05-26 15:01:49 486

原创 rabbitmq Header

#rabbitmqspring.rabbitmq.host=localhostspring.rabbitmq.port=5672spring.rabbitmq.username=longlongspring.rabbitmq.password=spring.rabbitmq.virtual-host=/#消费者数量spring.rabbitmq.listener.simple.co...

2019-05-25 17:49:29 657

原创 spring cloud stream rabbitmq

<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> ...

2019-05-25 17:06:05 183

原创 rabbitmq springboot 2

public class Order implements Serializable { private String id; private String name; public Order() { } public Order(String id, String name) { super(); this.id = id; ...

2019-05-25 15:56:06 139

原创 rabbitmq springboot

spring.rabbitmq.addresses=localhost:5672spring.rabbitmq.username=longlongspring.rabbitmq.password=spring.rabbitmq.virtual-host=/spring.rabbitmq.connection-timeout=15000spring.rabbitmq.publisher...

2019-05-25 15:35:06 206

原创 rabbitmq MessageConverter2

//1.4 ext convert MessageListenerAdapter adapter = new MessageListenerAdapter(new MessageDelegate()); adapter.setDefaultListenerMethod("consumeMessage"); //全局的转换器:ContentType...

2019-05-25 13:58:33 441

原创 rabbitmq MessageConverter

package com.bfxy.spring.entity;public class Order { private String id; private String name; private String content; public Order() { } public Order(String id, String...

2019-05-25 13:23:42 1413

原创 rabbitmq MessageListenerAdapter2

//适配器方式: 我们的队列名称 和 方法名称 也可以进行一一的匹配MessageListenerAdapter adapter = new MessageListenerAdapter(new MessageDelegate());adapter.setMessageConverter(new TextMessageConverter());Map<String, String&...

2019-05-25 12:33:22 339

原创 rabbitmq MessageListenerAdapter1

// 适配器方式. 默认是有自己的方法名字的:handleMessage// 可以自己指定一个方法的名字: consumeMessage// 也可以添加一个转换器: 从字节数组转换为StringMessageListenerAdapter adapter = new MessageListenerAdapter(new MessageDelegate());adapter.setDefa...

2019-05-25 12:26:11 299

转载 redis RDB AOF

https://www.cnblogs.com/ysocean/p/9114268.html#_label0https://www.cnblogs.com/ysocean/p/9114267.html

2019-05-25 11:17:23 95

原创 redis geo

2019-05-25 10:50:34 85

原创 redis bitmap

2019-05-23 22:25:18 168

原创 redis 发布订阅 Hyperloglog

2019-05-23 22:03:39 85

原创 redis PipeLine

Jedis jedis = new Jedis("127.0.0.1",6379);jedis.auth("12345");long start = System.currentTimeMillis();for (int i = 0; i < 100000; i++) { jedis.set("longqq"+i,"s"+i);}System.out.println(Sy...

2019-05-23 21:46:59 92

原创 redis 慢查询

config get slowlog-max-len //建议1000config get slowlog-log-slower-than //建议1000

2019-05-23 21:24:10 132

原创 rabbitmq SimpleMessageListenerContainer

//简单消息监听容器 @Bean public SimpleMessageListenerContainer messageContainer(ConnectionFactory connectionFactory) { SimpleMessageListenerContainer container = new SimpleMessageListenerContaine...

2019-05-22 22:23:39 1122

原创 rabbitmq RabbitTemplate

@Beanpublic RabbitTemplate rabbitTemplate(ConnectionFactory connectionFactory) { RabbitTemplate rabbitTemplate = new RabbitTemplate(connectionFactory); return rabbitTemplate;}@Testpublic ...

2019-05-22 21:47:56 2742

原创 rabbitmq @Bean

@Beanpublic TopicExchange exchange001() { return new TopicExchange("topic001", true, false);}@Beanpublic Queue queue001() { return new Queue("queue001", true); //队列持久}@Beanpublic Bin...

2019-05-22 21:24:02 626

原创 rabbitmq RabbitAdmin

<dependency> <groupId>com.rabbitmq</groupId> <artifactId>amqp-client</artifactId> <version>3.6.5</version></dependency><dependency> ...

2019-05-22 19:26:55 420

原创 redis zset

2019-05-21 22:23:50 101

原创 redis set

2019-05-21 21:41:58 110

原创 redis list

2019-05-21 20:04:06 110

原创 redis hash

2019-05-21 19:21:34 97

原创 redis string

setnx key value //key不存在设置set key value xx //key存在设置

2019-05-20 22:33:58 132

原创 redis简单使用

auth 12345 登录keys *keys h*keys一般不在生产环境使用。exists key //key是否存在persist key //去掉key的过期时间

2019-05-20 19:57:40 175

原创 静态文件application.properties

#static静态文件处理spring.resources.add-mappings=truespring.resources.cache-period= 3600spring.resources.chain.cache=true spring.resources.chain.enabled=truespring.resources.chain.gzipped=truespring....

2019-05-19 22:59:10 583

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除