- 博客(142)
- 收藏
- 关注
原创 Dubbo服务发布端和消费端启动过程剖析
Dubbo服务发布端和消费端启动过程剖析。Zookeeper、NettyServer、NettyClient。
2023-10-17 21:20:23 295
原创 Redisson 的主要方法
# 没获取到锁时,会尝试重新获取锁(使用了Semaphore,AQS队列)lock() -锁的过期时间:使用默认过期时间-30slock(long leaseTime, TimeUnit unit) - 指定锁的过期时间 leaseTime# 只会获取一次锁,获取失败则不再获取并返回falsetryLock(); - 锁的过期时间:使用默认过期时间-30s# 没获取到锁时,在指定的重试时间内,会尝试重新获取锁tryLock(long time, TimeUnit unit)
2022-03-15 09:05:30 399
原创 下载导入模板
1、将模板文件放到 resources 文件夹下可以在resources下新建static文件夹放置模板文件2、写读取模板文件和导出文件的接口/** * 下载导入模板 */@RequestMapping(value = "/downloadTemplate", method = RequestMethod.GET)public void downloadTemplate(HttpServletResponse response) { Resource resource = n
2022-01-26 10:18:40 831
原创 引入github分页插件,分页不生效
环境:spring-boot 2.3.1.RELEASE依赖如下:<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.3.0</version></dependency>解决办法:删除上述依赖,引入下面的依赖
2022-01-25 19:23:44 460
原创 go工程在idea上无法debug
1、报错go工程在idea上debug时报错,报错信息如下:could not launch process: debugserver or lldb-server not found:install XCode's command line tools or lldb-server2、解决安装 xcode-select在终端执行以下安装命令:$ xcode-select --install...
2021-12-11 14:50:29 1156
原创 windows 上安装go语言包
1、下载和安装Go语言开发包下载go1.16在Go语言官网(Downloads - go.dev)下载 Windows 系统下的Go语言开发包,使用下载的包直接安装2、设置Go配置(1)设置go环境变量安装好后,会自动设置好go环境变量(2)开启Gomodules和设置go依赖包下载地址go env -w GO111MODULE=ongo env -w GOPROXY=https://goproxy.io,direct...
2021-12-10 19:07:31 296
原创 mybatisplus BaseMapper 报错 required a single bean, but 2 were found
1、报错两个类继承 com.baomidou.mybatisplus.mapper.BaseMapper服务启动报错:Field baseMapper in com.baomidou.mybatisplus.service.impl.ServiceImpl required a single bean, but 2 were found: - UserDao: defined in file [D:\projects\test\UserDao.class] - DepartmentDao: de
2021-12-10 15:04:53 2974
原创 使用idea2019 创建GO项目
1、安装gosdk下载地址:Go下载 - Go语言中文网 - Golang中文社区(1)安装gosdk可以使用idea直接加载安装(2)Go配置(a)设置go环境变量GOROOT为go安装路径添加环境变量vim ~/.bash_profileexport GOROOT=/softwareInstall/go/go1.16export GOBIN=$GOROOT/binexport PATH=$PATH:$GOBIN(b)开启Go mo...
2021-12-05 14:55:21 3676
原创 Spring bean 属性注入的主要接口调用链
# 属性注入方法入口org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory#populateBean# 主要的调用链(由外到内)# (1)CommonAnnotationBeanPostProcessororg.springframework.context.annotation.CommonAnnotationBeanPostProcessor#postProcessProperties.
2021-10-31 12:30:41 194
原创 jdk1.8中使用aspectjweaver报错 Invalid byte tag in constant pool 18
背景(1)jdk 1.8(2)aspectjweaver 1.6.10<dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.6.10</version></dependency>(3)在方法中使用jdk1.8新特性lambda表达式后,执行方法报错,报
2021-08-26 20:48:00 1229
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人