<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sewevi的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/sewevi</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; sewevi]]></copyright><item><title><![CDATA[数据库插入高校批量函数]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/126578869</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/126578869</guid><author>sewevi</author><pubDate>Mon, 29 Aug 2022 16:21:28 +0800</pubDate><description><![CDATA[【代码】数据库插入高校批量函数。]]></description><category></category></item><item><title><![CDATA[EXIST使用]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/122689705</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/122689705</guid><author>sewevi</author><pubDate>Tue, 25 Jan 2022 17:50:10 +0800</pubDate><description><![CDATA[数据库EXISTS语句小记]]></description><category></category></item><item><title><![CDATA[JAVA项目文件路径工具类]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/122099307</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/122099307</guid><author>sewevi</author><pubDate>Thu, 23 Dec 2021 09:10:24 +0800</pubDate><description><![CDATA[public class ProjectPathUtils {
	
	public static final String CONFIG_FOLDER = "config";

	/**
	 * 获取java运行时的环境
	 * @return
	 */
	public static String getRunTimePath(){
        return System.getProperty("user.dir");
	}
	
	/**
	 * 获取classes路径
	 * @return
	 .]]></description><category></category></item><item><title><![CDATA[如何在IDEA Maven项目中导入本地jar包的步骤]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/122085667</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/122085667</guid><author>sewevi</author><pubDate>Wed, 22 Dec 2021 15:01:11 +0800</pubDate><description><![CDATA[1、打开侧面的maven，点击图中箭头指向的图标。





2、出现如下弹窗，在Command line在中输入执行的指令。



指令格式：


install:install-file -Dfile=&lt;Jar包的地址&gt;
           -DgroupId=&lt;Jar包的GroupId&gt;
           -DartifactId=&lt;Jar包的引用名称&gt;
           -Dversion=&lt;Jar包的版本&gt;
           -Dpa.]]></description><category></category></item><item><title><![CDATA[ElasticsearchTemplate请求列表无参数返回,debug字符串返回无数据]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/119451145</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/119451145</guid><author>sewevi</author><pubDate>Fri, 06 Aug 2021 11:40:12 +0800</pubDate><description><![CDATA[pom文件


        &lt;!--ES模块--&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
            &lt;artifactId&gt;spring-boot-starter-data-elasticsearch&lt;/artifactId&gt;
            &lt;version&gt;3.2.2&lt;/ve]]></description><category></category></item><item><title><![CDATA[elasticsearch RestHighLevelClient基础使用]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/117370198</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/117370198</guid><author>sewevi</author><pubDate>Fri, 28 May 2021 18:00:13 +0800</pubDate><description><![CDATA[配置关联elasticsearch


  elasticsearch:
    rest:
      uris: 127.0.0.1:9200

批量新增接口


    // 配置rest高级客户端
    @Autowired
    private RestHighLevelClient restHighLevelClient;

    public boolean saveKnowLedge(List&lt;DataKnowledgeDocument&gt; params) throws E.]]></description><category></category></item><item><title><![CDATA[Spring boot 通过注解与AOP拦截器生成日志]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/117260638</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/117260638</guid><author>sewevi</author><pubDate>Tue, 25 May 2021 17:49:40 +0800</pubDate><description><![CDATA[生成注解


@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface operLog{
    /**
     * 模块
     */
    String title() default "";

    /**
     * 功能 常量类
     */
    BusinessType businessType() d]]></description><category></category></item><item><title><![CDATA[JavaWeb中内部调用外部post、get方法]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/107856494</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/107856494</guid><author>sewevi</author><pubDate>Fri, 07 Aug 2020 10:48:43 +0800</pubDate><description><![CDATA[ObjectMapper类是Jackson库的主要类。它提供一些功能将转换成Java对象匹配JSON结构，反之亦然。它使用JsonParser和JsonGenerator的实例实现JSON实际的读/写。

演示

Java对象转换为JSON对象:


public class ObjectMapperTest {

    public static void main(String[] args) throws IOException {

        //序列化的时候序列对象的所有属性  
    ]]></description><category></category></item><item><title><![CDATA[ElasticSearch使用与ElasticsearchTemplate使用]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/107562510</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/107562510</guid><author>sewevi</author><pubDate>Fri, 24 Jul 2020 16:12:45 +0800</pubDate><description><![CDATA[@Data
@Document(indexName = "test_index_name", type = "testindexname", indexStoreType = "fs", shards = 5, replicas = 1, refreshInterval = "-1")
public class testES{
     @Id
    private String unid;//主键
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss"..]]></description><category></category></item><item><title><![CDATA[Java可变参数遇到的坑]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/107404348</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/107404348</guid><author>sewevi</author><pubDate>Fri, 17 Jul 2020 11:38:39 +0800</pubDate><description><![CDATA[可变参数为JDK1.5时候增加的特性

可变参数：适用于参数个数不确定，类型确定的情况，java把可变参数当做数组处理。

注意：

可变参数必须位于最后一项。

特点：

调用可变参数的方法时，编译器为该可变参数隐含创建一个数组，在方法体中以数组的形式访问可变参数。

例子：


public class Lab{
    public static void main(String[] args) {
        System.out.println(add(2, 3));
        Syst]]></description><category></category></item><item><title><![CDATA[Mybatis之foeach使用]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/107386188</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/107386188</guid><author>sewevi</author><pubDate>Thu, 16 Jul 2020 17:00:11 +0800</pubDate><description><![CDATA[在做mybatis的mapper.xml文件的时候，我们时常用到这样的情况：动态生成sql语句的查询条件，这个时候我们就可以用mybatis的foreach了

foreach元素的属性主要有item，index，collection，open，separator，close。

item：集合中元素迭代时的别名，该参数为必选。
	index：在list和数组中,index是元素的序号，在map中，index是元素的key，该参数可选
	open：foreach代码的开始符号，一般是(和close=")"合]]></description><category></category></item><item><title><![CDATA[java中List自定义比较器]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/107296418</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/107296418</guid><author>sewevi</author><pubDate>Sun, 12 Jul 2020 10:57:00 +0800</pubDate><description><![CDATA[import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class Lab {
    public static void main(String[] args) {
        List&lt;Student&gt; list = new ArrayList&lt;&gt;();
        //构建Student对.]]></description><category></category></item><item><title><![CDATA[事务回滚@Transactional与手动提交回滚]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/107066866</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/107066866</guid><author>sewevi</author><pubDate>Thu, 02 Jul 2020 17:24:03 +0800</pubDate><description><![CDATA[1
]]></description><category></category></item><item><title><![CDATA[mybatis-generator-gui的使用]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/105595552</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/105595552</guid><author>sewevi</author><pubDate>Sat, 18 Apr 2020 12:24:07 +0800</pubDate><description><![CDATA[首先打开mybatis-generator-gui文件，使用CMD命令进入mybatis-generator-gui文件夹下，我这里路径是G盘


cmd命令：java -jar mybatis-generator-gui.jar



启动界面：

(1)配置数据库链接



(2)设置表的字段和位置



点击代码生成就成功啦。

(3)看一下效果：


...]]></description><category></category></item><item><title><![CDATA[DTO传参转换工具]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/105249367</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/105249367</guid><author>sewevi</author><pubDate>Wed, 01 Apr 2020 17:49:05 +0800</pubDate><description><![CDATA[首先贴上源码


public interface DTOConvert&lt;T, S&gt; {
    /**
     * 转化
     * @param s
     * @return
     */
    T convert(S s);
}

我们将所用的数据分成三种类型Entity实体类，Params传参，DTO出参


@Data
@Accessors(chain = tr...]]></description><category></category></item><item><title><![CDATA[Spring boot中Mybatis常用的Mysql语句(增删改查与表连接)]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/105119402</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/105119402</guid><author>sewevi</author><pubDate>Thu, 26 Mar 2020 17:22:54 +0800</pubDate><description><![CDATA[配置mapper的xml文件


&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"&gt;
&lt;mapper namespace="co...]]></description><category></category></item><item><title><![CDATA[Spring boot,Day03-关于文件命名和Mybatis交互]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/104969696</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/104969696</guid><author>sewevi</author><pubDate>Thu, 19 Mar 2020 16:11:23 +0800</pubDate><description><![CDATA[小驼峰命名：首单词首字母小写，连接单词首字母大写 例如：detailAccount,selectUser

大驼峰命名：首单词首字母大写，连接单词首字母大写 例如：Spring Boot，Mybatis Plus

包名命名格式：domain，service，mapper 全小写

类名命名格式：TempMapper，OwnerInfoAdd，OwnerInfoDel 大驼峰命名

方法命名格式...]]></description><category></category></item><item><title><![CDATA[Spring boot,Day-02 Spring boot与Mysql,Mybatis交互]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/104963456</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/104963456</guid><author>sewevi</author><pubDate>Thu, 19 Mar 2020 14:51:48 +0800</pubDate><description><![CDATA[pom文件中导入mybatis


&lt;!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.mybatis.spring.boot&lt;/groupId&gt;
  ...]]></description><category></category></item><item><title><![CDATA[Spring boot，Day-01搭建Spring boot]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/104962529</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/104962529</guid><author>sewevi</author><pubDate>Thu, 19 Mar 2020 11:17:11 +0800</pubDate><description><![CDATA[Maven配置Spring boot方法：

在pom文件中添加Spring boot的启动项

    &lt;parent&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&...]]></description><category></category></item><item><title><![CDATA[页面值与值的传递<js>]]></title><link>https://blog.youkuaiyun.com/sewevi/article/details/103547467</link><guid>https://blog.youkuaiyun.com/sewevi/article/details/103547467</guid><author>sewevi</author><pubDate>Sun, 15 Dec 2019 12:37:47 +0800</pubDate><description><![CDATA[这两窗口之间存在着关系.父窗口Test1.html打开子窗口Test2.html
子窗口可以通过window.opener指向父窗口.这样可以访问父窗口的对象.
Test1.htm


&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; char...]]></description><category></category></item></channel></rss>