logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

使用gson时,import com.google.gson.Gson;标红报错解决办法,亲测有效。

问题描述:使用google公司的gson工具时,在Module的Build.Gradle中添加了dependency依赖,在java源文件中添加import com.google.gson.Gson;结果gson标红,但是不能正常使用,如下图所示:原因分析:仅仅在Build.Gradle文件中添加远程依赖implementation 'com.google.code.gson:gson:2.8.2

#android#gradle#java +1
1分钟解决:SpringBoot启动报错Injection of autowired dependencies failed; Could not resolve placeholder: 问题

问题现象:SpringBoot项目读取配置文件中参数给类中的变量赋值时,,报错:Error creating bean with name 'testController': Unsatisfied dependency expressed through field 'XXX'; |nested exception is org.springframework.beans.factory.Bea

#spring boot#java#intellij-idea
gitlab-runner注册和删除命令说明

gitlab-runner是用于辅助gitlab执行CI/CD流水线任务时使用的,可以部署在Gitlab所在服务器,也可以部署在其他服务器。这里介绍一下,runner注册和删除的指令和方法。注册:#/usr/local/bin/gitlab-runner register --urlhttp://192.168.0.1/ -registration-token项目token查询:#/usr/loc

#linux#gitlab
给安卓系统添加路由时,报错:RTNETLINK answers: Operation not permitted的解决办法

问题描述:当前应用场景是安卓系统5.1跨内网、外网两个网络,在配置路由时,报错 RTNETLINK answers: Operation not permitted,如图所示。问题原因:执行该命令需要的权限比当前用户的权限要高,操作没有权限,导致执行失败。解决办法:(1)切换到root用户命令为:#adb shell su结果如图所示,切换到了root用户。(2)重新执行命令重新执行命令,#ip

#android#网络#linux
logback配置文件报错:no applicable action for [MaxFileSize], current ElementPath ...

logback是SpringBoot开发过程中常用的日志工具,在使用前需要设置配置参数,一般写在logback-spring.xml文件中。问题现象:配置完logback-spring.xml文件后,运行报错,内容为:Exception in thread "main" java.lang.IllegalStateException: java.lang.IllegalStateException

文章图片
#logback
阿里云服务器“禁止外国IP访问服务器”和“禁止服务器访问外国IP”的安全组策略配置方法

近日,公司服务器被挖矿程序袭击,经查该IP地址是乌克兰的,在阿里云安全组策略上设置,禁止该IP地址段访问我们和阿里云去访问该乌克兰地址。配置阿里云服务器的安全组规则,按如下方法设置。1.禁止乌克兰该网段访问我们2.禁止阿里云服务器访问乌克兰该网段...

#阿里云#运维#网络
如何打开华为鸿蒙系统HarmonyOS虚拟器 利用华为DevEco Studio启动华为鸿蒙系统远程虚拟器Remote Virtual Devices

主要步骤:怎样打开鸿蒙系统模拟器,体验鸿蒙系统呢,只需要以下3步:(1)注册华为开发者账号,并完成使命认证,地址为:https://developer.huawei.com/consumer/cn/(2)下载DevEco Studio软件并安装,地址为:https://developer.harmonyos.com/cn/develop/deveco-studio#download;(3)打开De

文章图片
1分钟解决:SpringBoot启动报错Injection of autowired dependencies failed; Could not resolve placeholder: 问题

问题现象:SpringBoot项目读取配置文件中参数给类中的变量赋值时,,报错:Error creating bean with name 'testController': Unsatisfied dependency expressed through field 'XXX'; |nested exception is org.springframework.beans.factory.Bea

#spring boot#java#intellij-idea
vmware启动虚拟机时报错“无法打开内核设备\\.\Global\vmx86”的解决办法

问题现象:vmware启动虚拟机时,报错:无法打开内核设备\\.\Global\vmx86的错误。原因分析:vmware相关服务没打开。解决办法:(1)我的电脑->右键->选择管理;(2)在计算机管理界面,选择:服务和应用程序->服务,然后找到VMware Authorization Service一项;(3)右键->启动即可。(4)重启启动虚拟机,虚拟机可以启动了,故障排

nginx代理文件上传时报错:504 gateway time-out的一种解决办法

问题现象:上传文件时,由于升级包较大(80M左右),在完成加载上传时,服务器返回504Gateway错误:

文章图片
#nginx#linux
暂无文章信息