- 博客(69)
- 资源 (3)
- 问答 (25)
- 收藏
- 关注
原创 stable-diffusion-webui启动No Python at ‘C:\xxx\xxx\python.exe‘
stable-diffusion-webui启动No Python at 'C:\xxx\xxx\python.exe'问题
2023-08-10 11:45:17
2450
原创 ClassNotFoundException: org.thymeleaf.dialect.AbstractProcessorDialect
java.lang.ClassNotFoundException: org.thymeleaf.dialect.AbstractProcessorDialect
2023-07-25 14:07:46
672
原创 Could not resolve placeholder ‘‘“ in value ““
或者使用@ConfigurationProperties(prefix="xx")的到的值是空的。这个配置后面,把配置移到该配置前面即可。在获取配置文件的配置时报错。问题出在把配置信息放到了。
2023-04-21 14:02:01
4197
原创 启动rabbitmq报错 rabbitmq-server: line 70: exec: erl: not found
启动rabbitmq报错 rabbitmq-server: line 70: exec: erl: not found
2023-01-11 17:07:17
3383
4
原创 SpelResolverConfigurationOnMissingBean.spelResolver 找不到方法问题
io.github.resilience4j.spelresolver.autoconfigure.SpelResolverConfigurationOnMissingBean.spelResolver(SpelResolverConfigurationOnMissingBean.java:54)
2022-11-14 19:56:52
614
原创 could not be found for the javaType (com.alibaba.fastjson.JSONObject)
解决 could not be found for the javaType (com.alibaba.fastjson.JSONObject)
2022-10-24 15:49:35
1646
原创 Cannot find any provider supporting AES/CBC/PKCS7Padding
Cannot find any provider supporting AES/CBC/PKCS7Padding 解决
2022-10-24 15:10:34
1050
原创 EBean:The type xxx is not a registered
The type [class xxx.xx] is not a registered entity? If you don't explicitly list the entity classes to use Ebean will search for them in the classpath.
2022-08-16 15:22:54
216
原创 java -jar shell启动脚本
#!/bin/shpath=/aaa/bbbtime=$(date "+%Y%m%d")log_path=$path/logs/$time.logjar_name=aaa.jar#获取程序进程IDtpid=`ps -ef|grep $jar_name|grep -v grep|grep -v kill|awk '{print $2}'`#如果存在 关闭程序while [ ${tpid} ]do echo 'Stoping...' kill -9 $tpid sleep 1 .
2022-05-11 11:53:07
1370
原创 使用java命令运行class文件提示“错误:找不到或无法加载主类“
直接打开java文件把最上面的package xxx.xxx.xxx;package那一行删除然后再从新编译javac -encoding UTF-8 Test.java再运行java Test
2021-07-20 16:53:54
262
原创 FileWriter.write 数据丢失
拆分一个2G多的sql格式为-- ----------------------------BEGIN;INSERT INTO "user" VALUES (xx,xxx,x,x);...COMMIT;-- ----------------------------BEGIN;INSERT INTO "user2" VALUES (xx,xxx,x,x);...COMMIT;需要分成 user..sql,user2.sql...,代码private static Strin
2021-07-11 14:51:17
1020
原创 GIT初始化项目并上传
前提得有个远程代码仓库1.git init //初始化本地项目2.git add . //新增要提交的文件3.git commit -m "注释" //提交文件到本地仓库4.git checkout -b develop //切换并新建develop分支(看自己需要,不用可以跳过)5.git remote add origin 远程代码仓库地址 //新增远程仓库6.git pull --rebase origin develop //同步远程代码 develop是远程分支名,根据自己需求修改
2021-04-07 16:47:15
666
原创 升级JDK11报 com.sun.tools.javac.code.TypeTags
把lombok升级到1.18.2版本或以上<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.2</version></dependency>
2021-01-22 17:46:00
2054
1
原创 Spring @Value赋值给静态变量
配置user: api2: message: a message1: b message2: c message3: d message4: e1.//类加@Component注解 否则Spring启动@Value不生效private static String message;@Value("${user.api2.message}")public void setMessage3(String message){ message =
2021-01-15 15:53:44
164
原创 Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>
微服务版本升级spring cloud升级到 Hoxton.SR9 版本 spring boot升级到2.3.7.RELEASE 之后子模块报Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>最开始没升级版本的时候spring-boot-maven-plugin也没写版本号 也没报错加了版本号之后还是报错 报啥没记录 也是类似Cannot resolve plu.
2021-01-12 22:25:25
7037
1
原创 JS实现EXCEL列名和坐标转换
方法来源JExcel框架/** * 根据坐标获取列名 * @param {Object} cellId */function getColumnNameFromId(cellId){ if (! Array.isArray(cellId)) { cellId = cellId.split('-'); } var i = cellId[0]; var letter = ''; if (i > 701) { letter += String.fromCharCode(64
2021-01-12 14:50:33
863
原创 spring boot ehcache 异常: check your configuration (caching type is ‘EHCACHE‘)
Caused by: java.lang.IllegalArgumentException: No cache manager could be auto-configured, check your configuration (caching type is 'EHCACHE') at org.springframework.util.Assert.notNull(Assert.java:218) at org.springframework.boot.autoconfigure.cache.Ca.
2021-01-10 15:41:30
3412
原创 stream()和parallelStream()测试
测试一public class SteamTest { public static void main(String[] args) { List<String> list1 = new Random().ints().limit(100).mapToObj(i -> "asdd"+i).distinct().collect(Collectors.toList()); SteamTest test = new SteamTest(); .
2020-12-18 18:15:49
337
4
原创 Docker 启动kafka连接zookeeper超时
操作系统:windows删除之前是启动的kafka镜像从新使用以下命令启动kafkadocker run -d --name kafka --publish 9092:9092 --link zookeeper --env KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 --env KAFKA_ADVERTISED_HOST_NAME=localhost --env KAFKA_ADVERTISED_PORT=9092 wurstmeister/kafka参考
2020-12-10 15:27:07
3176
3
原创 Result Maps collection does not contain value for
MyBatis报这个错的原因1.BaseResultMap不存在,如下<resultMap id="UserBaseResultMap" type="com.test.UserInfo">...</resultMap ><select id="selectUser" resultMap="BaseResultMap"> ...</select> resultMap标签 的id 是 UserBaseResultMap而select ...
2020-11-29 18:36:26
30899
1
原创 MySql 使用FIND_IN_SET 代替 IN
经常有这这样的需求,一个表里面有个字段存另一个表的id,多个ID逗号隔开,查询数据的话需要把对应数据查出来如 消息表 message(id,title,user_ids,message) 用户表 user(id,name) ,消息表里有个推送人字段 存多个用户id,查询消息要把对应的用户信息查出来比如user_ids存的字符串为"1,2,3" 这时候使用select * from user where user_id in ("1,2,3")#这样查出来的数据只有一条,因为"1,2,3"是..
2020-11-26 16:11:56
1976
原创 Spring cloud GateWay 503 Service Unanailable
使用gateway做网关,consul 服务注册,对应的模块启动了,还是访问不到,报错503,跳过网关正常访问配置- id: user-server-routes uri: lb://user-server predicates: - Path=/user/*访问consul发现user-server服务是个红叉检查pom文件发现少引用了 spring-boot-starter-actuator<dependency> <groupId>o
2020-11-18 22:45:30
6486
3
原创 正则记录
匹配任意字符/[\s\S]*/替换括号内容var str = "{{ssss21asdasd21%}}";console.log("str",str.replace(/{{[\s\S]*}}/,"aaaa"));//aaaa特殊符号//英文/[`~!#$%^&*()_+<>?:"{},.\/;'[\]]/im//中文/[·!#¥(——):;“”‘、,|《。》?、【】[\]][\u4e00-\u9fa5]/im//汉字/[\u4e00-\u9fa5]
2020-11-17 11:06:16
124
原创 JS获取两个时间内的所有月份、天数
let dates = ["2019-01-01","2021-02-31","2020-05-01","2020-05-01","2020-01-03","2020-11-02","2020-10-02","2020-01-02"]//冒泡排序for (let i = 0; i < dates.length; i++) { for (let j = 1; j < dates.length-i-1; j++) { if (new Date(dates[j]).getTime()>.
2020-11-12 10:30:40
844
原创 Spring Boot 更新、清除多个缓存
使用 注解 @Caching ,源码如下@Target({ElementType.TYPE, ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@Inherited@Documentedpublic @interface Caching { Cacheable[] cacheable() default {}; CachePut[] put() default {}; CacheEvict[] evict(
2020-10-21 17:57:37
1074
原创 MyBatis Generator 返回自增ID
<table tableName="表名" domainObjectName="CollectInfo" > <generatedKey column="自增主建" sqlStatement="MySql" identity="true" /></table><!--例--><table tableName="User" domainObjectName="CollectInfo" > <generatedKey .
2020-10-17 11:07:04
812
原创 JpaObjectRetrievalFailureException: Unable to find xxx with id 1
在使用spring boot + jpa时遇到错误如下org.springframework.orm.jpa.JpaObjectRetrievalFailureException: Unable to find com.xxxx with id 1;nested exception is javax.persistence.EntityNotFoundException: Unable to find com.xxxx with id 1发现是使用 getOne() 方法报错根据错误信息 .
2020-10-14 17:34:48
6337
1
原创 DIV文字换行并且多余的换成省略号
width: 100px;word-wrap:break-word;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;/*行数*/-webkit-box-orient: vertical;
2020-10-07 15:08:23
706
原创 Spring Boot Druid 配置
初次使用 Druid 数据连接池,使用配置做个记录,仅供参考,相互学习,望不吝啬指教Druid 中文官方文档spring: datasource: type: com.alibaba.druid.pool.DruidDataSource platform: mysql url: jdbc:mysql://localhost:3306/test?characterEncoding=utf8&serverTimezone=UTC username: root
2020-09-19 23:38:45
529
原创 Maven异常:Could not find artifact xxxx:pom
因为是聚合工程,每个子模块的pom里面都有个<parent<parent> <groupId>com.xxx</groupId> <artifactId>xxxx</artifactId> <version>1.0-SNAPSHOT</version> <relativePath/> <!-- lookup parent from repository --&.
2020-09-13 14:42:37
76066
8
原创 将枚举的值转换成枚举
public enum TestEnum { TEST1(1), TEST2(2), TEST3(3), TEST4(4), TEST5(5); private int type; private TestEnum (int type) { this.type = type; } public int getType() { return this.type; } public .
2020-08-17 10:51:56
1515
1
原创 Linux搭建主主后没有同步数据,报Slave I/O for channel ‘‘错误
数据没有同步之后,查看日志看到错误(为了好看换行了)Slave I/O for channel '': error connecting to master 'repl@192.168.0.104:3306' - retry-time: 60 retries: 24 message: Authentication plugin 'caching_sha2_password' reported error: Authentication requires secure connection. Er.
2020-07-29 15:42:20
4883
转载 MySQL8.0忘记密码、安装没初始密码解决
转自:https://www.cnblogs.com/nonsec/p/12869682.html修改my.cnf[mysqld] 域中添加skip-grant-tables重启mysqld服务service mysqld restart重新使用空密码登录,直接敲回车mysql -u root -p切换数据库,并将密码清空mysql >use mysql;mysql >update user set authentication_string = ''
2020-07-29 10:27:47
2816
3
dubbo-admin-0.1.jar
2020-02-24
maven+ssm(spring,springmvc,mybatis)+读写分离的demo
2017-08-23
各种jar包,maven-spring的
2017-04-26
reflections获取子类
2022-06-06
Spring boot Redis缓存穿透和雪崩问题
2022-03-03
电商APP上如何实现个人浏览记录功能,数据延迟不超过一分钟
2021-04-21
js 频繁调用 对象回收
2020-11-24
Spring cloud 使用mybatis 公共实体类、mapper、xml如何存放
2020-09-22
sql查询如何使用前面的别名
2019-12-06
vue使用v-for循环直接使用方法获得的数组问题
2019-11-13
同一个浏览器不同域名请求同一个接口什么是一样的
2019-04-15
idea的maven项目在执行install时报错说程序包不存在
2018-04-23
Java极光推送如何设置content-available值
2017-11-21
Tomcat运行一段时间后就会挂掉,时间不确定,一会几天,一会几分钟,请大神看看
2017-11-07
Java 邮件发送失败 501,
2017-10-28
XML 解析错误:格式不佳位置
2017-09-25
请问一下spring mvc 的UrlRewrite的rule怎么配置
2017-09-04
请问如何让springmvc支持.jsp后缀访问后台方法
2017-08-31
网页如何设置微信的“在浏览器打开”链接,或者参数
2017-08-29
paypal的ipn验证老是失败
2017-08-11
java.lang.NoClassDefFoundError:
2017-08-10
myeclipse的servceCould not create the view异常
2017-08-10
能给一份PayPal支付的PDT验证的Java代码示例吗?
2017-08-09
spring mvc 访问404 ,请帮看一下。谢谢!
2017-05-04
服务器中Tomcat已经启动但访问不了,求各位大神看一下
2017-04-28
java.lang.reflect.InvocationTargetException
2017-04-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人