<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[zyecust的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/zyecust</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; zyecust]]></copyright><item><title><![CDATA[golang反向代理使用]]></title><link>https://blog.csdn.net/zyecust/article/details/126287512</link><guid>https://blog.csdn.net/zyecust/article/details/126287512</guid><author>zyecust</author><pubDate>Thu, 11 Aug 2022 16:54:53 +0800</pubDate><description><![CDATA[一个简单的代理功能实现，主要是通过这个是httputil自带的方法，可以直接引用，但是如果我们想要做一个比较完整的反向代理功能那该怎么办呢？]]></description><category></category></item><item><title><![CDATA[golang使用josn.Unmarshal报错：unexpected end of JSON input]]></title><link>https://blog.csdn.net/zyecust/article/details/126159647</link><guid>https://blog.csdn.net/zyecust/article/details/126159647</guid><author>zyecust</author><pubDate>Thu, 04 Aug 2022 15:18:42 +0800</pubDate><description><![CDATA[读取json数据时候通过unmarshal进行json数据反序列化时出现input问题的解决方案]]></description><category></category></item><item><title><![CDATA[怎么将本地开发分支推到远端预发分支上]]></title><link>https://blog.csdn.net/zyecust/article/details/123478158</link><guid>https://blog.csdn.net/zyecust/article/details/123478158</guid><author>zyecust</author><pubDate>Mon, 14 Mar 2022 16:40:26 +0800</pubDate><description><![CDATA[加粗样式本文讲述如何使用git，将本地dev代码推到远端pre分支上去，通过此方法也可以dev推到远端dev，同一个道理。
1.首先从git上下载代码

2.进入到项目下。cd  xxxx项目名字，git status 查看代码状态。
git branch -a  或者-v  查看代码分支情况

3.切换分支到你想要的分支上（如果没有分支，需要构建一个本地分支），如本文需要到本地pre分支上，又咩有这个分支，所以构建，并切换
git checkout -b pre origin/pre

4.在idea上打]]></description><category></category></item><item><title><![CDATA[mongo中insert和upsert方法使用]]></title><link>https://blog.csdn.net/zyecust/article/details/123398066</link><guid>https://blog.csdn.net/zyecust/article/details/123398066</guid><author>zyecust</author><pubDate>Thu, 10 Mar 2022 14:05:20 +0800</pubDate><description><![CDATA[mongoDB在go中使用是单表查询，每条数据的插入都是按照：数据唯一字段是否存在，存在则报错，反之，就正常插入。mongo提供了两种插入方法，insert和upsert
insert介绍
insert是插入方法，这是一个根据拼接数据库字段，自动插入的方法，但是这个方法需要我们自己提前去判断数据是否存在，然后将我们定义的body体数据给插入到mongo库中。所以就会造成我们需要两次操作数据库表。


如上图：1.我们需要定义条件，2.根据条件查询数据库判断数据是否重复，
3.自己生成一个id交给数据库，4，]]></description><category></category></item><item><title><![CDATA[mongo出现认证失败]]></title><link>https://blog.csdn.net/zyecust/article/details/123335161</link><guid>https://blog.csdn.net/zyecust/article/details/123335161</guid><author>zyecust</author><pubDate>Mon, 07 Mar 2022 17:24:34 +0800</pubDate><description><![CDATA[出现这种信息，注意自己的数据库用户信息是否填写，其他问题可自行百度。

]]></description><category></category></item><item><title><![CDATA[Postman报错：“error”：“Unsupported Media Type“ 的解决方法]]></title><link>https://blog.csdn.net/zyecust/article/details/122174906</link><guid>https://blog.csdn.net/zyecust/article/details/122174906</guid><author>zyecust</author><pubDate>Mon, 27 Dec 2021 16:26:03 +0800</pubDate><description><![CDATA[**
报错信息：
**

注意：如果你的api中使用注解@requestBody，那么需要在上图2中使用参数传递，最后如果出现4中错误，一般就是你的参数格式需要是Json格式的，因此将4改为JSON即可。如下图：


]]></description><category></category></item><item><title><![CDATA[Idea如何进行配置maven]]></title><link>https://blog.csdn.net/zyecust/article/details/121425152</link><guid>https://blog.csdn.net/zyecust/article/details/121425152</guid><author>zyecust</author><pubDate>Fri, 19 Nov 2021 16:19:49 +0800</pubDate><description><![CDATA[1.下载 maven 压缩包
输入网址 www.apache.org
会看到以下界面
然后看到这个界面
下载后
然后创建本地仓库  MavenRepository
其次打开 conf文件夹中 修改里面的 settings.xml 文件 （Notepad++、记事本、等等打开修改）
 加上这段   &lt;localRepository&gt;E:/ideaMaven/MavenRepository&lt;/localRepository&gt;  【E:/ideaMaven/MavenRepository ]]></description><category></category></item><item><title><![CDATA[同一台电脑安装两个不同版本（5.5到8.0）mysql]]></title><link>https://blog.csdn.net/zyecust/article/details/119931950</link><guid>https://blog.csdn.net/zyecust/article/details/119931950</guid><author>zyecust</author><pubDate>Thu, 26 Aug 2021 15:39:08 +0800</pubDate><description><![CDATA[由于项目需求，使用8.0以上版本的mysql，但本人电脑只有5.5的，因此为了以后对5.5需要的项目进行维护，所以安装两个版本mysql。
注意：因为两个mysql，所以一定要改变端口号（默认为3306）
1.下载

2.解压
将下载好的压缩包解压到D:\SMyoft\Mysql8.0
路径自定义，但是路径中尽量不要带空格或中文。

配置环境变量
在Path下添加 D:\SMyoft\Mysql8.0\mysql-8.0.17-winx64\bin
这一步的目的是为了避免在CMD窗口下操作时反复切换路径，也]]></description><category></category></item><item><title><![CDATA[go mod常用命令]]></title><link>https://blog.csdn.net/zyecust/article/details/119210529</link><guid>https://blog.csdn.net/zyecust/article/details/119210529</guid><author>zyecust</author><pubDate>Thu, 29 Jul 2021 14:50:20 +0800</pubDate><description><![CDATA[1 介绍（go mod）
1.1、go mod是什么
  go mod 是Golang 1.11 版本引入的官方包（package）依赖管理工具，用于解决之前没有地方记录依赖包具体版本的问题，方便依赖包的管理。

  之前Golang 主要依靠vendor和GOPATH来管理依赖库，vendor相对主流，但现在官方更提倡go mod。

1.2、go mod初始化及使用
下载官方包1.11(及其以上版本将会自动支持gomod) 默认GO111MODULE=auto(auto是指如果在gopath下不启用mo]]></description><category></category></item><item><title><![CDATA[2021-01-06]]></title><link>https://blog.csdn.net/zyecust/article/details/112281304</link><guid>https://blog.csdn.net/zyecust/article/details/112281304</guid><author>zyecust</author><pubDate>Wed, 06 Jan 2021 16:34:44 +0800</pubDate><description><![CDATA[centos7中java ,java -version 有效,但是javac无效的解决办法
在centos7中以rpm包安装jdk无需配置环境变量,
terminal中输入java -verison及java 命令也是没问题的，但是javac的话就会提示没有此命令
此时我们用yum来装原生的就行了:
使用
yum install java-devel

(非管理员账号使用 sudo yum install java-devel命令)
下载安装完毕后,再次输入 javac ,ok了

...]]></description><category></category></item><item><title><![CDATA[2021-01-06]]></title><link>https://blog.csdn.net/zyecust/article/details/112281046</link><guid>https://blog.csdn.net/zyecust/article/details/112281046</guid><author>zyecust</author><pubDate>Wed, 06 Jan 2021 16:32:18 +0800</pubDate><description><![CDATA[Centos 服务器安装redis
文档连接：https://www.cnblogs.com/leemamas/articles/13508729.html
视频链接：
https://www.bilibili.com/video/BV1SC4y147Hmfrom=search&amp;seid=14121463905051013425

]]></description><category></category></item><item><title><![CDATA[substring方法截取字符串以及其他方式]]></title><link>https://blog.csdn.net/zyecust/article/details/108577177</link><guid>https://blog.csdn.net/zyecust/article/details/108577177</guid><author>zyecust</author><pubDate>Mon, 14 Sep 2020 12:47:20 +0800</pubDate><description><![CDATA[方法一，指定字符，截取字符串，返回字符串数组：
String str = “abcd,123,123abc,fij23”;
String[]  strs=str.split(",");
方法二，指定索引号，截取字符串：
将字符串从索引号为5开始截取，一直到字符串末尾。（索引值从0开始）:
String str = “asdfghjkl”;
str.substring(5);
从索引号2开始到索引好4结束（并且不包含索引4截取在内，也就是说实际截取的是2和3号字符）:
String sb = “asdfghj]]></description><category></category></item><item><title><![CDATA[解决spring boot 报错问题:Disconnected from the target VM, address: ‘127.0.0.1:51596]]></title><link>https://blog.csdn.net/zyecust/article/details/107959044</link><guid>https://blog.csdn.net/zyecust/article/details/107959044</guid><author>zyecust</author><pubDate>Wed, 12 Aug 2020 15:58:02 +0800</pubDate><description><![CDATA[解决spring boot 报错问题:Disconnected from the target VM, address: '127.0.0.1:51596
本文是springboot项目启动时出现未连接目标地址，从网上看了一些原因，主要都是忘记添加web的依赖包或者端口号被占用，本人也进行了进程查看，发现在进程服务中确实存在一个pid对应的端口号占用了本文项目端口号，因此，可以进行强行关闭服务进程。
主要步骤是：netstat -ano

可以看到存在一个端口号为3296占用了本文的9771端口，我们可以通]]></description><category></category></item><item><title><![CDATA[mybatis 之 if test 条件，参数为0时，查询条件未输出]]></title><link>https://blog.csdn.net/zyecust/article/details/107955735</link><guid>https://blog.csdn.net/zyecust/article/details/107955735</guid><author>zyecust</author><pubDate>Wed, 12 Aug 2020 14:01:13 +0800</pubDate><description><![CDATA[mybatis 之 if test 条件，参数为0时，查询条件未输出
问题描述：mybatis 之 if test 条件，参数为0时，查询条件未输出。如，当 status值为0(Integer)，查询条件没有拼接 and tagtype=0。传入其他值（1,2,3…）都正常
&lt;if test=" null != status and ''!= status"&gt;
            AND status = #{status}
&lt;/if&gt;

如果是这样的字段status（integ]]></description><category></category></item><item><title><![CDATA[Hibernate入门第一讲——Hibernate框架的快速入门]]></title><link>https://blog.csdn.net/zyecust/article/details/107760010</link><guid>https://blog.csdn.net/zyecust/article/details/107760010</guid><author>zyecust</author><pubDate>Mon, 03 Aug 2020 11:29:00 +0800</pubDate><description><![CDATA[具体看博客地址：讲的真的很基础，对于新手很有利，建议收藏
https://blog.csdn.net/yerenyuan_pku/article/details/64209343?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFr]]></description><category></category></item><item><title><![CDATA[escape的主要用途]]></title><link>https://blog.csdn.net/zyecust/article/details/107487820</link><guid>https://blog.csdn.net/zyecust/article/details/107487820</guid><author>zyecust</author><pubDate>Tue, 21 Jul 2020 14:44:08 +0800</pubDate><description><![CDATA[escape的主要用途
当你想查询_,% 特殊字符时，请用escape
Select ename from emp where ename like ‘%s_%’ escape ‘s ’;

我们并不想查找S后必须有一个字符以上的员工，而是要剔除S，S出现的目的就是转义，将_转义了，这里的_不是通配符，而是实际意义的_。
Select ename from emp where ename like ‘%/_%’ escape ‘/’;

一般我们使用/来转义，以免产生歧异。
1.使用 ESCAPE 关键字定]]></description><category></category></item><item><title><![CDATA[sql 语句中count()有条件的时候为什么要加上or null]]></title><link>https://blog.csdn.net/zyecust/article/details/106902810</link><guid>https://blog.csdn.net/zyecust/article/details/106902810</guid><author>zyecust</author><pubDate>Mon, 22 Jun 2020 15:29:41 +0800</pubDate><description><![CDATA[如count(status = 0 or NULL) 这部分 为什么要加上or NULL 直接count(status=0)会出现什么问题？
因为 当 status不是 0时 ，status=0结果false而 不是 NULL，
Count在 值是NULL是 不统计数， （count(‘任意内容’)都会统计出所有记录数，因为count只有在遇见null时不计数，即count(null)==0，因此前者单引号内不管输入什么值都会统计出所有记录数）至于加上or NULL ， 很像其他编程里的or运算符，第一个表]]></description><category></category></item><item><title><![CDATA[Spring boot 启动失败 ERROR org.springframework.boot.SpringApplication - Application run failed]]></title><link>https://blog.csdn.net/zyecust/article/details/106815145</link><guid>https://blog.csdn.net/zyecust/article/details/106815145</guid><author>zyecust</author><pubDate>Wed, 17 Jun 2020 17:58:32 +0800</pubDate><description><![CDATA[spring boot启动失败原因：
本文想做一个系统管理，在spring boot下进行开发，但是提交代码时出现启动失败，上网搜索发现各种原因主要包括：
1 说  @EnableAutoConfiguration 注解没加.
2 说  @SpringBootApplication 注解没加
3 说  springboot-中包含tomcat疑问,删除maven依赖,重新下载解决’
4 说  spring-boot-starter-parent 依赖冲突,删除一个即可
5 说  启动类要和 项目在同一级下
]]></description><category></category></item><item><title><![CDATA[bing.Binding Exception在mybatis中出现]]></title><link>https://blog.csdn.net/zyecust/article/details/106654256</link><guid>https://blog.csdn.net/zyecust/article/details/106654256</guid><author>zyecust</author><pubDate>Wed, 10 Jun 2020 00:11:22 +0800</pubDate><description><![CDATA[转自：https://blog.csdn.net/qq_18298439/article/details/80586789
今天遇到mybatis的报错，搞了好久才搞懂，在网上找了好久的相似案例，也没有搞定，先来看下网上常见的解决办法吧，相信也能解决大部分人的报错。
排查方法如下：
1、mapper接口和mapper.xml是否在同一个包（package)下？名字是否一样（仅后缀不同）？
2、mapper.xml的命名空间（namespace）是否跟mapper接口的包名一致？
3、接口的方法名，与xml中]]></description><category></category></item><item><title><![CDATA[Intellij IDEA中使用Debug调试详解]]></title><link>https://blog.csdn.net/zyecust/article/details/106653978</link><guid>https://blog.csdn.net/zyecust/article/details/106653978</guid><author>zyecust</author><pubDate>Wed, 10 Jun 2020 00:04:43 +0800</pubDate><description><![CDATA[Intellij IDEA中使用Debug调试详解
转载:https://www.linuxidc.com/Linux/2017-09/146772.htm观看详细讲解（注意：很不错的文章）


]]></description><category></category></item></channel></rss>