
javabug
文章平均质量分 61
xujunming668
这个作者很懒,什么都没留下…
展开
-
[完美解决]springfox.documentation.builders.RequestHandlerSelectors.basePackage(Ljava/lang/String;)Ljava/
swagger的bug原创 2022-07-13 23:39:30 · 3376 阅读 · 0 评论 -
application.yml不是绿色的终极解决办法
根本原因在创建application.yml文件的时候, 没有写.yml真正的问题是在这里, 得去取消掉这个设置终于搞定了! 因为检测不到文件格式, 所以没有代码提示, 问了周边的人都不懂, 百度也不知道, 然后自己花了5个小时慢慢摸索!...原创 2022-02-17 18:43:52 · 1025 阅读 · 1 评论 -
[完美解决] Failed to start bean ‘webServerStartStop‘; nested exception is java.lang.reflect.UndeclaredTh
org.springframework.context.ApplicationContextException: Failed to start bean ‘webServerStartStop’; nested exception is java.lang.reflect.UndeclaredThrowableException集群nacos后 用了nginx作为代理, 启动时候一直转圈圈…原创 2022-01-16 14:40:35 · 47647 阅读 · 9 评论 -
[推荐] nacos 命名空间配置不生效问题
真的想哭哦~ 那些课件未必配置是正确的填写这个namespace的时候 一定要注意, 如果有提示 说明位置是正确的, 才会生效,.不然他也不报错, 也不生效… 我tm…这都半夜了原创 2022-01-15 01:15:43 · 4612 阅读 · 0 评论 -
BindingException: Parameter ‘MP_OPTLOCK_VERSION_ORIGINAL‘ not found. Available parameters are [param
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘MP_OPTLOCK_VERSION_ORIGINAL’ not found. Available parameters are [param1, et]遇到这个异常 只有2种情况拦截器弄错了version没有值, 如果是new出来的对象,没有给version值,原创 2022-01-13 20:20:51 · 1950 阅读 · 0 评论 -
mybatisPlus主键不自增 设置@TableId(type = IdType.AUTO)后不自增问题
问题描述本来表里只有1 2 3 4 5 6 7 的id 新增一条记录后的ID应该是8但是出现了很长的id 这不是想要的结果这是因为自增的规则已经被破坏了 ,要是想用按照mysql表的自增规则, 那建表后一开始就用@TableId(type = IdType.AUTO) 来插入数据解决办法:把表删除, 然后重新导入, @Test public void test_insert() { User user = new User(); user原创 2022-01-13 11:40:36 · 2741 阅读 · 0 评论 -
ReflectionException Cause: java.lang.IllegalArgumentException: argument type mismatch
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property ‘id’ of ‘class com.itheima.domian.User’ with value ‘1481260909543333890’ Cause: java.lang.IllegalArgumentException: argu原创 2022-01-12 21:51:35 · 274 阅读 · 0 评论 -
[推荐] mysql主从库数据不同步,或mysql从库里面做了增删改操作导致不同步,或是mysql现有的主库和从库数据同步前不一致问题
这个bug 必须逮住… 非常非常坑问题描述: 不小心在从库里面, 右键鼠标删除了表, 结果就炸裂了… 会导致从库线程异常的,这时候,正常人家的 就需要stop slave 从新配置一下就行但我这个就特别坑,… 如果你也是配置后总是失败 那就是和我一样 一定要修改Mysql数据库的配置文件>>>> server-id=201 #[必须]服务器唯一ID这个id 一定要重新写另外一个数字, 主 和 从都要重新写,太坑死我了下面的是完整的重新配置 mysql的主从1.记得,配原创 2022-01-11 21:32:57 · 3172 阅读 · 3 评论 -
执行source /etc/profile后卡死, 然后重启服务端,就发现一直在kill线程...
他一直都有提示 修改linux source /etc/profile 权限不够 我是直接给一个权限的 chmod 777 文件名 ,问题根源不在这里, 于是去各种百度为什么卡死, 一晚上就恢复了4次快照…一晚上就这样没有了问题压根不是这里, 得追溯源头 为什么会没有权限???于是更换了思路, 就去百度搜索linux source /etc/profile 权限不够找到了 一篇文章 点开一看 还真的一模一样…就是配置文件里面少了一个#符号这个符号少了 就意味着他在递归的遍历, 一直往底层遍历, .原创 2022-01-09 23:22:42 · 1332 阅读 · 1 评论 -
完美解决:Error Code: 1273 - Unknown collation: ‘utf8mb4_0900_ai_ci‘ 高版本mysql兼容低版本
问题描述:本地windows的mysql是8版本的, linux的mysql版本是5.7的windows的mysql 高版本导出的sql 导入到linux的5.7版本 会出现格式问题无论怎么导入都会报错 必须统一修改格式Line no.:44 2022年1月9日18:21:25Error Code: 1273 - Unknown collation: ‘utf8mb4_0900_ai_ci’第二...原创 2022-01-09 18:21:47 · 1506 阅读 · 0 评论 -
Access denied克隆虚拟机后,登录客户端出现的问题
这个问题大概率是你是root角色 但是和上图那样,你登录的是cli角色具体的用这个关键词百度: Access denied原创 2022-01-09 15:33:24 · 447 阅读 · 0 评论 -
EL1008E: Property or field ‘setmeal‘ cannot be found on object of type ‘org.springframework.cache.in
org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field ‘setmeal’ cannot be found on object of type ‘org.springframework.cache.interceptor.CacheExpressionRootObject’ - maybe not public or not valid?at org.springframework.ex原创 2022-01-08 15:26:31 · 2957 阅读 · 6 评论 -
nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379
问题描述: 前端登录 点击发送验证码时候 后端获取redis,存储验证码,但是连接失败\org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to localhost:6379at org.springframewor原创 2022-01-07 20:46:00 · 1589 阅读 · 0 评论 -
完美解决方案 redis Could not connect to Redis at 127.0.0.1:6379: Connection refused
问题描述:在Linux系统安装Redis后, 经过一番折腾后 ,启动了服务端后, 在启动客户端,出现了 redis Could not connect to Redis at 127.0.0.1:6379: Connection refused考虑存在的问题:1.redis.conf 可能配置出错2.防火墙没有开放6379解决方案:恢复快照 重装redis 下面地址包含软件, 包含详细文档「Redis安装包」https://www.aliyundrive.com/s/QHwShMSiafV原创 2022-01-07 18:41:07 · 35842 阅读 · 2 评论 -
redies的redisTemplate入门测试空指针了
判断是容器没启动 ,所以加了一个注解 @RunWith(SpringRunner.class)应该是是用了junit4的版本原因@RunWith(SpringRunner.class)@SpringBootTestpublic class JedisTest {@Autowiredprivate RedisTemplate<String,String> redisTemplate;@Testpublic void test_2() { ValueOperations .原创 2022-01-06 20:38:22 · 854 阅读 · 0 评论 -
linux添加jdk权限不够
777是给与全部权限原创 2022-01-05 16:09:33 · 1692 阅读 · 0 评论 -
Failed to parse multipart servlet request; nested exception is javax.servlet.ServletException:
org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is javax.servlet.ServletException: org.apache.tomcat.util.http.fileupload.impl.InvalidContentTypeException: the request doesn’t contain a mult原创 2022-01-02 21:53:16 · 2828 阅读 · 0 评论 -
public constructor found for interface java.util.List - and no default constructor found either
java.lang.IllegalStateException: No primary or single public constructor found for interface java.util.List - and no default constructor found eitherat org.springframework.beans.BeanUtils.getResolvableConstructor(BeanUtils.java:250)at org.springframework原创 2022-01-02 11:47:57 · 832 阅读 · 0 评论 -
near ‘selete * from reggie.address_book where user_id = 2 and is_default=1‘ at line 1
Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘selete * from reggie.address_book where user_id = 2 and is_default=1’ at li原创 2022-01-01 17:18:21 · 174 阅读 · 0 评论 -
SB_7_瑞吉外卖_6_收货地址_菜品展示_购物车_下单
瑞吉外卖-第六天课程内容用户地址簿功能菜品展示购物车下单1. 用户地址簿功能1.1 需求分析地址簿,指的是移动端消费者用户的地址信息,用户登录成功后可以维护自己的地址信息。同一个用户可以有多个地址信息,但是只能有一个默认地址。 对于地址簿管理,我们需要实现以下几个功能:新增地址地址列表查询设置默认地址编辑地址删除地址1.2 数据模型用户的地址信息会存储在address_book表,即地址簿表中。具体表结构如下:这里面有一个字段is_default,实际上我原创 2022-01-01 15:35:16 · 4081 阅读 · 1 评论 -
org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘DELETE‘ not supporte
org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘DELETE’ not supportedat org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.handleNoMatch(RequestMappingInfoHandlerMapping.java:251)at org.springframe原创 2022-01-01 15:25:26 · 1488 阅读 · 0 评论 -
### Cause: java.sql.SQLIntegrityConstraintViolationException: Column ‘user_id‘ cannot be null
org.springframework.dao.DataIntegrityViolationException:Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column ‘user_id’ cannot be nullThe error may exist in com/itheima/reggie/mapper/ShoppingCartMapper.java (best gues原创 2022-01-01 12:39:47 · 4475 阅读 · 1 评论 -
JSON parse error: Cannot deserialize instance of `java.lang.Long` out of START_OBJECT token; nested
org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of java.lang.Long out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deseriali原创 2021-12-31 18:48:11 · 11993 阅读 · 1 评论 -
java.sql.SQLIntegrityConstraintViolationException: Column ‘phone‘ cannot be null
org.springframework.dao.DataIntegrityViolationException:Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column ‘phone’ cannot be nullThe error may exist in com/itheima/reggie/mapper/UserMapper.java (best guess)The err原创 2021-12-30 21:32:05 · 962 阅读 · 0 评论 -
java.sql.SQLIntegrityConstraintViolationException: Column ‘phone‘ cannot be null
org.springframework.dao.DataIntegrityViolationException:Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column ‘phone’ cannot be nullThe error may exist in com/itheima/reggie/mapper/UserMapper.java (best guess)The err原创 2021-12-30 21:23:08 · 1436 阅读 · 0 评论 -
java.lang.NullPointerException at com.itheima.reggie.service.impl.UserServiceImpl.login(UserService
java.lang.NullPointerExceptionat com.itheima.reggie.service.impl.UserServiceImpl.login(UserServiceImpl.java:26)at com.itheima.reggie.controller.UserController.login(UserController.java:59)at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke原创 2021-12-30 21:17:45 · 1964 阅读 · 0 评论 -
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingExce
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘ids’ not found. Available parameters are [collection, list]at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(原创 2021-12-30 12:28:29 · 2482 阅读 · 0 评论