自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Unable to merge Config.json files. verify and then add ‘mergeRule‘ in the HAP

Unable to merge Config.json files. The value 'ReqPermissions'ohos.permission.WRITE_USER_STORAGE' conflicts with the value ':reason' of a subtag in the HAR file. Please verify and then add 'mergeRule' in the HAP.解决办法:

2021-08-03 17:19:31 296

原创 Application 上面打红x

点它,选最上面的 Edit Configuration下面提示 module 没有指定,Main class 里如果是空的,点后面那里重新指定一下如果不是空的,删除掉,点 apply,再重新指定一下。

2020-12-11 09:44:12 1678

原创 安装idea2020.3版本后原来好好的项目报错 :程序包 xxx 找不到,找不到符号

springcloud 的 gradle项目,module a 依懒 module b ,报错指向 a,说 a 里找不到 b 里的那个annotation包网上找了解决办法,这个最火,但试了都没用。https://blog.csdn.net/cxz7456/article/details/106132805/然后找到另外一个办法,在 b 的 build.gradle 里加一句jar.enabled = true解决了。。...

2020-12-10 15:34:38 940 1

原创 Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)

安卓开发操作文件时报错安卓10只能操作应用自己文件夹,设置文件夹路径为/sdcard/Android/data/+包名

2019-11-11 10:05:25 912

原创 mac 启动 rocketmq

一,下载https://www.apache.org/dyn/closer.cgi?path=rocketmq/4.5.1/rocketmq-all-4.5.1-bin-release.zip二,Start Name Server输入命令 nohup sh bin/mqnamesrv &输入命令 tail -f ~/logs/rocketmqlogs/namesr...

2019-08-28 09:49:57 1300

转载 Linux下设置swappiness参数来配置内存使用到多少才开始使用swap分区(转)

阿里云 CPU 使用率经常到100%又马上降下来,top -c 命令查看进程发现是kswapd0进程占 cpu忽高忽低swap分区的作用是当物理内存不足时,会将一部分硬盘当做虚拟内存来使用。kswapd0 占用过高是因为 物理内存不足,使用swap分区与内存换页操作交换数据,导致CPU占用过高。swappiness的值的大小对如何使用swap分区是有着很大的联系的。swappine...

2019-07-10 09:15:06 810

原创 Spring事务注解@Transactional的简单使用(本类调用)

下面写法可以不用写接口@EnableAspectJAutoProxy( exposeProxy = true)要加,自定义事务管理器也要加,不然可能报错No qualifying bean of type 'org.springframework.transaction.PlatformTransactionManager' available 或 回滚无效 阿里云服务器和短信...

2018-12-12 14:23:32 1076 1

原创 阿里云 CentOS 安装 redis并配置远程连接

一:yum install epel-release二:安装yum install redis三:启动systemctl start redis四:查找 redis.conf 目录whereis redis.conf会打印出redis: /etc/redis.conf五:修改配置文件 redis.confvim /etc/redis.conf按 i 键  进...

2018-10-29 15:22:08 517

原创 阿里云CentOS安装和配置mysql

https://www.cnblogs.com/chen1carpolite/p/8986320.html禁止firewall开机启动systemctl disable firewalld.service关闭firewallsystemctl stop firewalld.service查看默认防火墙状态,关闭的显示not running,开启的显示runningfire...

2018-10-26 15:50:21 109

原创 高德地图自定义 marker 布局里加载网络图片不显示的问题

服务端返回一组 marker 数组,for 循环里添加自定义布局 marker到地图上要注意两个原因不显示 marker1,要在图片加载完后再把 布局view添加到 marker 上2,markerOption必须是 for 循环里的变量,不能是全局变量,不然可能这个 marker 还没加载好,markerOption就被下一个循环给初始化了for (MapShopItemBe...

2018-09-13 12:52:14 4020

原创 mac crontab 启用定时任务备份数据库详细步骤

先写个备份数据库的.sh脚本打开 mac 命令窗口输入crontab -e  按 i  键 切换插入模式输入启动定时脚本命令*/2 * * * * /Users/TLJ/mysqlBackup/sqlAutoBak.sh输入完不需要回车,直接按 ESC,然后输入  :wq  这样就执行任务了可以看到备份了一次输入 crontab -l   查看要停止上面的定时任...

2018-09-07 13:41:11 465

原创 写的配置文件高亮显示 application context not configured for this file

打开选择配置文件所在 module,点+添加这个类即可类名 BeanConfig 上的高亮报错消失

2018-08-20 11:16:11 1798

原创 java.lang.ClassNotFoundException: org.springframework.boot.bind.PropertiesConfigurationFactory

https://www.aliyun.com/1111/2019/group-buying-share?ptCode=C2152DD43A335E540D48FAB3B10B4F23647C88CF896EF535&userCode=t62yynzl&share_source=aliyun_app阿里云双11拼团价1核2G, 86元/年, 229元/3年2核4G, ...

2018-08-20 11:11:46 10778 6

原创 阿里云CentOS下swap交换分区创建和删除

今天阿里云 centOS 出现启动新服务,老服务被关闭。看了下内存使用,一启动新服务内存使用就到96%了, cpu 到了100%查看交换分区一,创建交换区 swap1,增加4G 大小的 swapdd if=/dev/zero of=/var/swap bs=1024 count=4096000if是指input file,of是output file。dev/zero是li...

2018-07-26 17:33:39 999

原创 阿里云CentOS安装和配置rabbitmq

下载rpm并安装:rpm安装官网:http://www.rabbitmq.com/install-rpm.htmlCentOs:wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1-1.noarch.rpmrpm --import https://www.rabbitmq....

2018-07-26 10:06:26 338

原创 阿里云centos安装tomcat

1,本机下载tomcat 9.0.8.tar.gz2,打开远程工具,如MAC上的FinalShell,连接阿里云地址,3,输入命令在阿里云服务器上建文件夹   sudo mkdir / usr / local / java托动下载好的tomcat9.0.8.tar.gz到阿里云服务器新建的文件夹5,新建文件夹   sudo mkdir / usr / local / tom...

2018-07-26 07:06:35 451

原创 启动 springboot 报错Failed to initialize DiscoveryClient!,Cannot create Jersey client

https://www.aliyun.com/1111/2019/group-buying-share?ptCode=C2152DD43A335E540D48FAB3B10B4F23647C88CF896EF535&userCode=t62yynzl&share_source=aliyun_app阿里云双11拼团价1核2G, 86元/年, 229元/3年2核4G, ...

2018-07-11 09:28:50 4614

原创 SpringBoot启动报错Your ApplicationContext is unlikely to start due to a @ComponentScan of the default pa

原来我小小心把 Application 类直接放到了java文件夹下面,只要建个包,放包里就 OK

2018-07-05 14:24:21 208

原创 No active profile set, falling back to default profiles: default

https://www.aliyun.com/1111/2019/group-buying-share?ptCode=C2152DD43A335E540D48FAB3B10B4F23647C88CF896EF535&userCode=t62yynzl&share_source=aliyun_app阿里云双11拼团价1核2G, 86元/年, 229元/3年2核4G, ...

2017-11-04 13:16:09 4905

原创 Annotation processing isnot supported for module cycles

https://www.aliyun.com/1111/2019/group-buying-share?ptCode=C2152DD43A335E540D48FAB3B10B4F23647C88CF896EF535&userCode=t62yynzl&share_source=aliyun_app阿里云双11拼团价1核2G, 86元/年, 229元/3年2核4G, ...

2017-10-27 14:26:39 3659

原创 IDEA 启动Tomcat指定显示jsp文件

选artifacts,Output directory里选择要显示jsp的路径,比如选择的红框中就是指显示项目中rest-service\src\main\webapp文件夹里的jsp文件,也可以改成其它的。这也是war包生成存放路径https://www.aliyun.com/1111/2019/group-buying-share?ptCode=C2152DD43A3...

2017-10-26 16:54:23 12949

空空如也

空空如也

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

TA关注的人

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