<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ray_yang0420的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/ray_yang0420</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; ray_yang0420]]></copyright><item><title><![CDATA[class.getResource()与ClassLoader.getResource()中的参数需要怎么填写]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/112333986</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/112333986</guid><author>ray_yang0420</author><pubDate>Thu, 07 Jan 2021 20:54:08 +0800</pubDate><description><![CDATA[Class.getResource(String name)：在当前调用类的同一路径下查找该资源

例如，我的当前类在impl包下面，那么Class.getResource()就定位于路径：/D:/learnSpringboot/basicJava/out/production/basicJava/impl/

1.如果查询的资源与当前类路径相同，都在impl包下

相对路径的写法Class.getResource("Xxx.xxx")

绝对路径的写法Class.getResource(”/impl/..]]></description><category></category></item><item><title><![CDATA[invalid comparison: java.util.Date and java.lang.String(无效的比较)]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/111882510</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/111882510</guid><author>ray_yang0420</author><pubDate>Tue, 29 Dec 2020 10:49:06 +0800</pubDate><description><![CDATA[在使用mybatis的时候，在mapper.xml中写了一段这样的代码，我的startTime是Date类型的


&lt;if test="startTime != null and startTime != ''"&gt;
            
 &lt;/if&gt;

此时就会报错invalid comparison: java.util.Date and java.lang.String(无效的比较)，不能用Date类型与String类型进行比较，问题出现在下面这段代码


and start]]></description><category></category></item><item><title><![CDATA[Access denied for user ‘‘@‘localhost‘ (using password: NO)]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/110956617</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/110956617</guid><author>ray_yang0420</author><pubDate>Thu, 10 Dec 2020 16:52:44 +0800</pubDate><description><![CDATA[发现错误的时候，我还以为登录mysql的密码不对，结果发现springboot的自动补全坑了我

我的数据库配置如下：


spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#数据的URL
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&amp;characterEncoding=utf8&amp;serverTimezone=UTC
#登录数据库的]]></description><category></category></item><item><title><![CDATA[Java collection的Iterator的使用]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/110861065</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/110861065</guid><author>ray_yang0420</author><pubDate>Tue, 08 Dec 2020 15:02:11 +0800</pubDate><description><![CDATA[看到了Java核心技术一书的集合的迭代器，写篇文章记录一下


interface Iterator&lt;E&gt;，有四个方法：hasNext()，next()，remove()，forEachRemaining(),最后一个方法是JDK1.8新增的

接下来使用迭代器中的方法遍历一个collection

1.传统方式，使用hasNext()，next()


 public static void main(String[] args) {
        Collection&lt;String&]]></description><category></category></item><item><title><![CDATA[连接MySQL数据库报错The server time zone value ‘�й���׼ʱ��‘ is unrecognized or represemore than one time zone]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/110278616</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/110278616</guid><author>ray_yang0420</author><pubDate>Sat, 28 Nov 2020 15:27:31 +0800</pubDate><description><![CDATA[连接MySQL报了一个时区的错误：The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you ]]></description><category></category></item><item><title><![CDATA[Navicat报错[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clauseand contains nonaggr]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/110220392</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/110220392</guid><author>ray_yang0420</author><pubDate>Fri, 27 Nov 2020 09:33:57 +0800</pubDate><description><![CDATA[刚刚把Navicat安装好，新建了一个测试库，打算键个测试表，执行了建表语句，insert语句，SQL语句都执行了成功了，但是还是报错[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ‘information_schema.PROFILING.SEQ’ which is not functionally dependent on columns i]]></description><category></category></item><item><title><![CDATA[将jar包导入本地仓库，然后在maven项目中添加依赖]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/109921197</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/109921197</guid><author>ray_yang0420</author><pubDate>Sun, 22 Nov 2020 10:12:14 +0800</pubDate><description><![CDATA[今天在windows环境下需要集成海康威视的SDK，项目需要依赖两个jar包

1.我的jar放在这个文件夹下面



2.打开window命令窗口，进入到这个文件夹所在的目录



3.输入 mvn install:install-file -DgroupId=com.hcsdk -DartifactId=face-jna -Dversion=1.0.0 -Dpackaging=jar -Dfile=jna.jar

Dfile:是我要转成的maven依赖的jar包,这是有一个相对的路径，所以先切换到..]]></description><category></category></item><item><title><![CDATA[maven命令打包失败Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/109485007</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/109485007</guid><author>ray_yang0420</author><pubDate>Wed, 04 Nov 2020 10:34:37 +0800</pubDate><description><![CDATA[在idea的Terminal窗口执行命令mvn clean package -Dmaven.test.skip=true



出现如下错误：


Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project basic: Fatal error compiling: 无效的目标发现版：1.8 -&gt; [Help 1]


原因是maven.]]></description><category></category></item><item><title><![CDATA[遍历list同时删除不需要的元素]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/108099136</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/108099136</guid><author>ray_yang0420</author><pubDate>Wed, 19 Aug 2020 14:05:30 +0800</pubDate><description><![CDATA[在遍历list的时候想要删除其中某些元素，可以使用如下方法

1.倒序遍历list


List&lt;String&gt; list=new ArrayList&lt;&gt;();
list.add("1");
list.add("2");
list.add("3");
list.add("4");


int size = list.size();
for(int i=size-1;i&gt;=0;i--){
  if(list.get(i).equals("3"))
    list.remove(]]></description><category></category></item><item><title><![CDATA[oracle统计 group by之后的总条数]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/107977840</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/107977840</guid><author>ray_yang0420</author><pubDate>Thu, 13 Aug 2020 13:42:39 +0800</pubDate><description><![CDATA[今天有个需求：group by分组后，需要统计总条数

oracle：

select count(1) from

(select t.workday from NEWSTAFF_WORK_TEMPLETE t where t.position=nsp.id group by t.workday) days
]]></description><category></category></item><item><title><![CDATA[oracle 查询group by的字段之外的字段]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/107971755</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/107971755</guid><author>ray_yang0420</author><pubDate>Thu, 13 Aug 2020 09:21:27 +0800</pubDate><description><![CDATA[今天有一个需求要使用group by，oracle的的group by的用法是：select后面的字段要属于group by的字段，并且order by后面的字段也属于group by的字段里面。

但是我要select的字段多于group by的字段，怎么办呢？

1.查询字段使用的oracle的版本

select * from nls_database_parameters;

我的是12.2.0.1.0，也就是12c

2.两种group by的方法

  (1).oracle10版本及其以前，..]]></description><category></category></item><item><title><![CDATA[oracle varchar2排序问题]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/107965902</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/107965902</guid><author>ray_yang0420</author><pubDate>Wed, 12 Aug 2020 20:25:56 +0800</pubDate><description><![CDATA[在oracle中假如你的排序字段是个varchar2类型，碰到9和10,11,12..比较，这时就凉凉了，今天我就碰到这个问题了，还是实在本地开发过程中遇到的，要是上线出现这中问题，又要挨骂了。

oracle认为9比10,11,12大，因为9是和个位数先比一次，再和十位数比一次，9肯定比1大，这个时候就有问题
...]]></description><category></category></item><item><title><![CDATA[海康威视人脸门禁对接开发（一）调用设备篇]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/104067922</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/104067922</guid><author>ray_yang0420</author><pubDate>Wed, 22 Jan 2020 10:28:26 +0800</pubDate><description><![CDATA[上一篇的准备工作做好后，给设备通上网，需要在设备上面配置

1.注册设备，设备会返回：唯一用户ID，lUserID


/**
	 * 海康人脸识别机器型号：DS-K1T610M-KSC,DS-K1Y607M
	 */
	public static void main(String[] args) {

		HCNetDeviceUtil hcNetDeviceUtil=new HCNetDevi...]]></description><category></category></item><item><title><![CDATA[海康威视人脸门禁对接开发（一）准备篇]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/104059782</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/104059782</guid><author>ray_yang0420</author><pubDate>Wed, 22 Jan 2020 09:58:36 +0800</pubDate><description><![CDATA[前一段时间在HR系统中做了一个人脸识别考勤的模块，主要功能：设备注册，下发卡号与人脸，获取卡号与人脸，删除卡号与人脸，对设备布防，报警回调函数。

首先在Window上开发，我们项目的JDK是1.6（64位），所以必须要用Win64的SDK开发包，这个很重要，版本对不上，在调用HCNetSDK.dll这个库文件时会报错，现在开始开发。

1.先去海康官网下载最新的SDK 官网地址：https://...]]></description><category></category></item><item><title><![CDATA[对List进行排序]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/103974733</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/103974733</guid><author>ray_yang0420</author><pubDate>Tue, 14 Jan 2020 16:13:39 +0800</pubDate><description><![CDATA[项目中经常需要对list排序，第一中是在数据库中排序，第二种就是使用编程语言来排序，记录下我知道的Java中对list的排序方法

1.JDK1.7版本

1.如果对List&lt;Integer&gt;这中包装类型list进行排序 ，已经实现Comparable接口并重写compareTo方法（源码中可以看到）





Collections.sort(list);

2.对List&lt;实...]]></description><category></category></item><item><title><![CDATA[Oracle相关：PL/SQL中执行多条insert语句]]></title><link>https://blog.youkuaiyun.com/ray_yang0420/article/details/103958622</link><guid>https://blog.youkuaiyun.com/ray_yang0420/article/details/103958622</guid><author>ray_yang0420</author><pubDate>Mon, 13 Jan 2020 15:41:01 +0800</pubDate><description><![CDATA[方法一：

新建一个SQL Window，使用pl/sql块，如下：

plsql块：
  begin

。。。。。。。。。。
    insert语句
  end;

方法二：

使用存储过程，如下：

create or replace procedure insertData （存储过程名字，这里使用无参存储过程就可以）

is(使用as也可以，两者都一样)

begin

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