上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页
摘要: package com.hh.boot01.config; import com.alibaba.druid.pool.DruidDataSource; import org.springframework.beans.factory.annotation.Value; import org.spr 阅读全文
posted @ 2020-07-18 17:35 王洪洪 阅读(1692) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <m 阅读全文
posted @ 2020-07-17 14:43 王洪洪 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 效果图: 服务端: package cn.itcast.netty.chat; import io.netty.channel.Channel; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.Simple 阅读全文
posted @ 2020-07-16 18:03 王洪洪 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 效果图 Server端代码 package cn.itcast.netty.basic; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerCo 阅读全文
posted @ 2020-07-16 17:40 王洪洪 阅读(424) 评论(0) 推荐(0) 编辑
摘要: package test; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.ZooDefs; import org.apache.zookeeper.ZooKeeper; import org.apache.zo 阅读全文
posted @ 2020-07-15 09:46 王洪洪 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 多线程情况下AtomicInteger是线程安全的,而int是线程不安全的 阅读全文
posted @ 2020-07-11 10:34 王洪洪 阅读(710) 评论(0) 推荐(0) 编辑
摘要: package test; public class LockExer { private static String lockA="locka"; private static String lockB="lockb"; public void methodA() throws Exception 阅读全文
posted @ 2020-07-01 13:38 王洪洪 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1、在阿里云上部署zookeeper 可以用xshell 2、配置输出规则 3、书写代码(代码为转载 转载地址 https://blog.csdn.net/weixin_38004638/article/details/96641877) 感谢原作者的分享 package test; import 阅读全文
posted @ 2020-07-01 09:49 王洪洪 阅读(184) 评论(0) 推荐(0) 编辑
摘要: package test; import com.hm.pojo.Item; import com.hm.service.ItemService; import org.junit.Test; import org.junit.runner.RunWith; import org.springfra 阅读全文
posted @ 2020-06-29 13:44 王洪洪 阅读(100) 评论(0) 推荐(0) 编辑
摘要: import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class TestThred03 extends Thread { private static int num = 0; priva 阅读全文
posted @ 2020-06-20 23:11 王洪洪 阅读(684) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 28 下一页