随笔分类 -  后端知识积累

摘要:根据图片url首先获取流,转byte数组,然后得到base64文本,注意不要使用注释里的方法。 阅读全文
posted @ 2023-09-23 19:21 傲云萧雨 阅读(118) 评论(0) 推荐(0)
摘要:1、准备工作,需要在微信开放平台申请一个应用,需要网站域名备案过。 得到:appid和secret两个重要参数,这边域名涉及到后面微信回调。 2、时序图 3、主要步骤四点 一)根据appid和回调redirect_uri生成二维码图 https://open.weixin.qq.com/connec 阅读全文
posted @ 2023-03-30 23:16 傲云萧雨 阅读(1049) 评论(0) 推荐(0)
摘要:1、如果用@RequestBody接受boot的参数 1)前端采用的js对象传会报400 JSON转化异常:Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error 2 阅读全文
posted @ 2022-11-30 01:15 傲云萧雨 阅读(101) 评论(0) 推荐(0)
摘要:1查看进程 netstat -ano|findstr "8001" 2杀进程 可以去任务管理器,详细信息根据pid杀 阅读全文
posted @ 2022-11-29 11:09 傲云萧雨 阅读(21) 评论(0) 推荐(0)
摘要:1、mybaitsplus和codegenerator版本要一致,不然启动项目会报错 2、 阅读全文
posted @ 2022-11-26 15:23 傲云萧雨 阅读(33) 评论(0) 推荐(0)
摘要:1、lamba表达式 本质上是一个匿名函数,需要接口里面只有一个待实现的方法 package com.xiangwen.day8; public class LambaTest { public static void main(String[] args) { OneParaOneResult o 阅读全文
posted @ 2021-07-20 22:45 傲云萧雨 阅读(69) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-06-19 16:15 傲云萧雨 阅读(88) 评论(0) 推荐(0)
摘要:package com.xiangwen.day3; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Execut 阅读全文
posted @ 2021-05-25 10:32 傲云萧雨 阅读(234) 评论(0) 推荐(0)
摘要:报错如下: This application has no explicit mapping for /error, so you are seeing this as a fallback. Tue May 11 23:40:56 CST 2021 There was an unexpected 阅读全文
posted @ 2021-05-11 23:45 傲云萧雨 阅读(126) 评论(0) 推荐(0)
摘要:文件位置 C:\Windows\System32\drivers\etc\hosts 增加 #Eureka集群127.0.0.1 eureka7001.com127.0.0.1 eureka7002.com127.0.0.1 eureka7003.com 阅读全文
posted @ 2021-05-11 22:09 傲云萧雨 阅读(131) 评论(0) 推荐(0)
摘要:1、扫包 1. 扫描指定类文件 @ComponentScan(basePackageClasses = Person.class)2. 扫描指定包,使用默认扫描规则,即被@Component, @Repository, @Service, @Controller或者已经声明过@Component自定 阅读全文
posted @ 2021-05-11 15:39 傲云萧雨 阅读(255) 评论(0) 推荐(0)
摘要:1、解决:com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: 没有在配置文件注册eureka 阅读全文
posted @ 2021-04-15 18:39 傲云萧雨 阅读(89) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-10-27 14:06 傲云萧雨 阅读(164) 评论(0) 推荐(0)
摘要:centos7 1、安装ntp服务软件包:yum install ntp 2、将ntp设置为缺省启动:systemctl enable ntpd 3、修改启动参数,增加-g -x参数,允许ntp服务在系统时间误差较大时也能正常工作:vi /etc/sysconfig/ntpd 4、启动ntp服务:s 阅读全文
posted @ 2020-10-20 14:20 傲云萧雨 阅读(435) 评论(0) 推荐(0)