加载中
java http server 调用的坑

case:spring boot server 提供一个:api 接口,需要body形式的json参数 post man 调用:head 必须加 否则报错400 或者 不认识的html文件 代码调用: 需要传递 object ,不鞥将参数转为strin...

2021/11/22 14:42
61
如何进入已死docker目录

1: docker inspect find ::GraphDriver.Data.MergedDir example : /data/dockerlib/docker/overlay2/467443d2bb4571b1a97dfe363445781423b2ce42e829da6cf558a0273a08fa2c/merged cd /data/do...

2021/10/27 13:44
91
Result Maps collection already contains value for**Mapper.BaseResultMap

自动生成的xml 存在的了多个 BaseResultMap 定义

2021/01/14 11:39
375
一个好习惯不要在finally 里面return

public static String test(String b ){ String a = "aaa"; b=null; try{ a="bbb"; b.equals(a); return a; }finally { ......

2020/12/07 15:32
58
spring gateway 调用 gateway的问题(gateway作为二级网管)

问题描述:gateway a 作为一级网管 gateway b 作为二级网管 。发现 a - b 404,postman -b ok. 请求地址和参数都一样。 解决:通过拦截数据包发现:a - b 在head中加了x-forward 的参数。配置...

2020/11/20 17:06
480
es 运维

节点丢失,且只有主分片,允许数据丢失,强制重新分配 post:127.0.0.1:9200/_cluster/reroute param:{ "commands" : [ { "allocate_empty_primary" : { "index" :......

2020/09/08 10:13
63
golang 问题-proto

``` WARNING: proto: message volume_server_pb.QueryRequest.OutputSerialization.JSONOutput is already registered 解决 volume_server_pb 这个文件重复了,删除一个ok ```......

2020/08/24 14:26
5.5K
java-利用java 对时间乘除做精度推算的坑

利用 对时间乘除做精度推算的坑 public static void main(String[] args) { Date date = new Date(); //Thu Jul 25 13:51:15 CST 2019 long tims = date.getTime(); System.out.printl......

2020/08/14 22:56
135
java-利用 对时间乘除做精度推算的坑

利用 对时间乘除做精度推算的坑 public static void main(String[] args) { Date date = new Date(); //Thu Jul 25 13:51:15 CST 2019 long tims = date.getTime(); System.out.printl......

2020/08/14 22:56
85
java-利用 对时间乘除做精度推算的坑

利用 对时间乘除做精度推算的坑 public static void main(String[] args) { Date date = new Date(); //Thu Jul 25 13:51:15 CST 2019 long tims = date.getTime(); System.out.printl......

2020/08/14 22:55
60
mybatis mapunderscoretocamelcase不起作用

项目中用了xml,现在香用注解,结果驼峰映射一直失败,配置如下 mybatis: configuration: map-underscore-to-camel-case: true default-fetch-size: 100 default-statement-timeout: 30 解决...

2020/05/23 16:08
1.3W
etcd/zookeeper/conful

相较之下,ZooKeeper有如下缺点: 1. 复杂。ZooKeeper的部署维护复杂,管理员需要掌握一系列的知识和技能;而Paxos强一致性算法也是素来以复杂难懂而闻名于世;另外,ZooKeeper的使用也比较复...

2019/07/08 13:22
331
mysql join 表 报错 Illegal mix of collations (utf8_general_ci,IMPLICIT) .......

在做mysql多表join查询时候发现错误如下: 报错:Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' 原因:两个表的校验编码不一致 ...

2019/06/24 16:31
6.2K
mysql 多行结合和拼接sql注入

select a1.email as email ,a1.bg ,IFNULL(a1.bg, a2.bg) from ( select * from test01 where sdate = '2019-09-11' ) a1 LEFT join (select * from test01 where sdate = '2019-09-10') a2 ...

2019/06/17 16:30
2.8K
mysql ERROR 1698 (28000): Access denied for user 'root'@'localhost'

ubuntu 新安装了mysql, java连接一直报错:ERROR 1698 (28000): Access denied for user 'root'@'localhost' 解决办法:vim /etc/mysql/mysql.conf.d/mysqld.cnf [mysqld] add:skip-grant-...

2019/05/14 15:33
231
Docker internal installation mysql

apt-get install net-tools apt-get install mysql-server service mysql start 启动mysql netstat -tap | grep mysql mysql -u root -p root 查看数据库编码:show variables like "char%"...

2019/05/14 11:02
83
springboot

1,事物: @EnableTransactionManagement 启动类上面添加 特别注意: @Transactional(propagation = Propagation.REQUIRED,rollbackFor=Exception.class) 的方法不能类内部调用,否则事物失效...

2019/04/10 17:12
71

没有更多内容

加载失败,请刷新页面

返回顶部
顶部