摘要:
package com.itheima.redis; import com.itheima.pojo.User; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.fact
阅读全文
posted @ 2020-07-20 14:34
王洪洪
阅读(429)
推荐(0)
摘要:
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
王洪洪
阅读(1703)
推荐(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
王洪洪
阅读(261)
推荐(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
王洪洪
阅读(414)
推荐(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
王洪洪
阅读(440)
推荐(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
王洪洪
阅读(202)
推荐(0)
摘要:
多线程情况下AtomicInteger是线程安全的,而int是线程不安全的
阅读全文
posted @ 2020-07-11 10:34
王洪洪
阅读(758)
推荐(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
王洪洪
阅读(117)
推荐(0)
摘要:
1、在阿里云上部署zookeeper 可以用xshell 2、配置输出规则 3、书写代码(代码为转载 转载地址 https://blog.csdn.net/weixin_38004638/article/details/96641877) 感谢原作者的分享 package test; import
阅读全文
posted @ 2020-07-01 09:49
王洪洪
阅读(194)
推荐(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
王洪洪
阅读(104)
推荐(0)