logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

mysql mapper 判断‘-‘报错

MyBatis 会把右边的 ‘-’ 当成【字符 char】,而左边是【字符串 String】OGNL 表达式在比较 String!= char 时,会尝试把字符串 强制转成数字,于是 - 就爆了。java 字段:private String capacityClassification;java 入参: “capacityClassification”: “-”;

#mysql#数据库
CSDN 文章的草稿在哪里

一、网页版(PC)

git 删除远程orgin

git 添加远程orgin时,输入错误,需要删除删除命令:git remote rm origin

mysql分组排序取第一条数据

需求:mysql 根据一个字段分组,各种排序,然后,取第一条数据1.分组字段加排序字段先排序2. 再按分组字段分组,取第一条即可witht_picture as(SELECT npi_product_id,is_default_one,update_time, uri FROM datahub_product_attachment where type=1 ORDER BY npi_product

#mysql#数据库#database
linux 测试 ip、端口号可用性

1. curl参考https://blog.csdn.net/leinminna/article/details/122855090?spm=1001.2014.3001.55012. telnettelnet 218.14.227.197 88893. 其他服务器内部// 查询运行的端口号netstat -tnlp|grep 8889// 直接查询运行的 jarps -ef| grep nbi-

#linux#服务器#运维
Mixed Content: The page at ‘https://xxx.com/‘ was loaded over HTTPS, but requested an insecure XMLHt

前端代码中使用的是http://ip_address:port/api,进行接口调用;前端使用 https://domain.com/api ,进行接口调用;

文章图片
#https#网络协议#http
springBoot 项目排除数据库启动

1. 场景在家里运行项目,运行springBoot的时候报数据库连接不了,公司的数据库家里不能连接。2. 配置2.1 保留之前的properties 配置不注释;2.2 在启动类中添加, exclude = {DataSourceAutoConfiguration.class}package cn.cncommdata.file;import org.mybatis.spring....

mysql分组排序取第一条数据

需求:mysql 根据一个字段分组,各种排序,然后,取第一条数据1.分组字段加排序字段先排序2. 再按分组字段分组,取第一条即可witht_picture as(SELECT npi_product_id,is_default_one,update_time, uri FROM datahub_product_attachment where type=1 ORDER BY npi_product

#mysql#数据库#database
    共 17 条
  • 1
  • 2
  • 请选择