自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create

uniapp 启动安卓项目,连接真机,改动代码热更新时,出现这个报错。解决方法,把 unpackage 这个文件夹删除,重新启动项目即可。

2023-12-19 16:00:17 1695

原创 egg.js 微信服务号,token 验证失败

一定要返回文本类型,而不是 json。

2023-05-12 08:40:34 682

原创 deno error trying to connect: dns error: 请求的名称 有效,但是找不到请求的类型的数据

error: error sending request for url (https://raw.githubusercontent.com/pillarjs/path-to-regexp/v6.1.0/src/index.ts: error trying to connect: dns error: 请求的名称有效,但是找不到请求的类型的数据。 (os error 11004)。解决办法在 hosts 文件中 加入199.232.68.133 raw.githubusercontent.com

2020-06-14 10:50:19 2464 3

原创 mysql 查询先 having 再 group by 分组

别名无法作为 where 的条件,可以作为 having 的条件,如果想用函数处理后的字段只能给这个字段起个别名,这时用 having 筛选后再分组就会报错,因为 having 不能用在 group by 之前,所以我们可以先把 having 筛选后的记录作为一个整体再去分组,代码如下。select count(one.keywrod) as num one.keyword (select A....

2019-11-01 18:17:46 573

原创 phpstorm 安装 xdebug 调试 Validation 报错

我照着这篇博客安装 https://www.cnblogs.com/zengguowang/p/8391227.html过程中遇到错误,错误信息如下Validation script was created but it cannot be executed, check possible reasons: Configured 'Url to validation script' is in...

2019-10-15 13:40:52 4070

原创 mybatis注解sql多条件查询,并做条件判断

@Select("<script> SELECT * from jf_gift" + "<where>"+ "<if test='cityId != null'>and city_id = #{cityId}</if> "+ " <if test='periodId != ...

2019-09-15 17:37:02 4688

原创 HV000030: No validator could be found for constraint 'javax.validation.constraints.NotBlank' valida

“HV000030: No validator could be found for constraint ‘javax.validation.constraints.NotBlank’ validating type ‘java.math.BigDecimal’. Check configuration for ‘price’”@NotEmpty 用在集合类上面@NotBlank 用在Str...

2019-09-10 11:56:54 5147 1

原创 springboot mybatis 注解 sql 返回为 null

前面用 jpa 都是在类上加注解 @Column(name = “name”),mybatis 没法用这句映射到数据库的字段,所以要加上如下配置mybatis: configuration: #配置项:开启下划线到驼峰的自动转换. 作用:将数据库字段根据驼峰规则自动注入到对象属性。 map-underscore-to-camel-case: truemybatis 依赖...

2019-09-09 18:04:04 1551 1

原创 springboot 项目中 h2 数据库表不存在

该问题出现在 idea 中,关闭数据库表窗口再重启项目试试。

2019-09-08 20:19:56 3042

转载 springboot jpa save 更新记录

先用主键id查出某条记录,再对查询返回的对象赋值就行了 JFUser jfUser = jfUserRepository.findByUserId(14732); jfUser.setUserName("小鲤鱼"); jfUser.setUserPhone("2222222"); jfUser.setOrderPoint(new BigDecim...

2019-09-06 18:57:42 1690 1

原创 jpa 省略 @Column

默认配置是可以省略的,遵从驼峰式命名,也就是遇到大写字母会转成 ‘_’ ,但是如果配置下面的代码就不能省略了,属于无修改命名。(关键:physical-strategy)jpa: hibernate: naming: physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrateg...

2019-09-05 18:47:20 2489 1

原创 mysql 中 tinyint 对应 java 中的数据类型

byte 就行了 范围 -128~127,够用了。

2019-09-05 16:43:03 23003 6

原创 Error:(4, 21) java: 程序包java.net.http不存在

改成你的 jdk 版本。

2019-04-22 12:54:48 4355

原创 pyautogui 安装 报错

错误信息如下UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa2 in position 905: illegal multibyte sequenceTry to run this command from the system terminal. Make sure that you use the correct version ...

2019-03-05 14:44:54 2581 1

原创 返回数据显示为json格式 谷歌浏览器 JSONView 插件的使用

https://www.crx4chrome.com/crx/5454/进入此网页点击 CrxChrome 下载下载完成后,在谷歌浏览器中输入chrome://extensions/把下载在本地的插件用鼠标左键拖入该页面空白处即可...

2019-02-24 11:37:42 5952

原创 FATAL - WMI Operation failure: AccessDenied

使用 winsw 把 Java jar 包变为 window 后台服务过程中,一直报这个错FATAL - WMI Operation failure: AccessDenied打开cmd的时候,改成 以管理员身份运行 就可以了。(https://blog.csdn.net/rico_zhou/article/details/81283953)https://blog.csdn.net/big...

2018-12-29 18:59:49 12026

原创 springboot 连接redis报错 nested exception is redis.clients.jedis.exceptions.JedisConnectionException

报错信息如下:严重: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.data.redis.RedisConnectionFail...

2018-12-06 23:07:17 27791

原创 springboot interface SelectOneMapper<T> 接口中这个方法T selectOne(T record)报错

@SelectProvider(type = BaseSelectProvider.class, method = “dynamicSQL”)T selectOne(T record);严重: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request pr...

2018-12-05 17:58:11 2451

原创 spring-boot 将excel表数据插入或更新到mysql数据库

spring-boot 将excel表数据插入或更新到mysql数据库部署好springboot后,pom.xml 添加Apache POL依赖 &amp;amp;amp;amp;amp;lt;dependency&amp;amp;amp;amp;amp;gt; &amp;amp;amp;amp;amp;lt;groupId&amp;amp;amp;amp;amp;gt;org.apache.poi&amp;amp;amp;amp;a

2018-11-29 02:09:18 429

空空如也

空空如也

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

TA关注的人

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