摘要: 读取权限 r = 4 写入权限 w = 2 执行权限 x = 1 sudo chmod -R 777 /data 权限码描述 sudo chmod 600 ××× (只有所有者有读和写的权限)sudo chmod 644 ××× (所有者有读和写的权限,组用户只有读的权限)sudo chmod 70 阅读全文
posted @ 2021-08-06 11:14 cxylm 阅读(938) 评论(0) 推荐(0)
摘要: 1.maven仓库,可下载oracle相关jar包 https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc8/12.2.0.1/ 2.kubesphere文档地址 https://v2-1.docs.kubesphere.io/do 阅读全文
posted @ 2021-08-06 10:24 cxylm 阅读(69) 评论(0) 推荐(0)
摘要: 1. mycat下载 Mycat-server-1.6.7.4-release-20200105164103-win.tar.gz 2.配置conf/server.xml <user name="root" defaultAccount="true"> <property name="passwor 阅读全文
posted @ 2021-08-05 15:56 cxylm 阅读(192) 评论(0) 推荐(0)
摘要: 1.引用pom依赖 <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-boot-starter</artifactId> <version>4.0.1</version 阅读全文
posted @ 2021-08-05 15:47 cxylm 阅读(360) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/littlecharacter/p/9342129.html 一、数据库瓶颈 不管是IO瓶颈,还是CPU瓶颈,最终都会导致数据库的活跃连接数增加,进而逼近甚至达到数据库可承载活跃连接数的阈值。在业务Service来看就是,可用数据库连接少甚至无连 阅读全文
posted @ 2021-08-03 09:21 cxylm 阅读(53) 评论(0) 推荐(0)
摘要: 读取文件转为字符串: //输入文件File类型,输出字符串 public static String fileToString(File file) { InputStream is = null; ByteArrayOutputStream bos = new ByteArrayOutputStr 阅读全文
posted @ 2021-08-02 16:06 cxylm 阅读(1940) 评论(0) 推荐(0)
摘要: springboot项目打包后,由于jar内部的路径结构的影响,会导致有些方式读取资源文件夹下的文件不可用,现分享两中好用的读取方式 我采用的springboot打包插件为: <build> <pluginManagement> <plugins> <plugin> <groupId>org.spr 阅读全文
posted @ 2021-08-02 10:08 cxylm 阅读(3357) 评论(0) 推荐(0)
摘要: 一. 环境 springboot 2.0.4 二. pom添加依赖 <dependency> <groupId>org.springframework.kafka</groupId> <artifactId>spring-kafka</artifactId> </dependency> <depen 阅读全文
posted @ 2021-07-30 15:51 cxylm 阅读(1213) 评论(0) 推荐(0)
摘要: 环境: springboot 2.0.4 maven 一、在pom中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId 阅读全文
posted @ 2021-07-30 15:19 cxylm 阅读(70) 评论(0) 推荐(0)