<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[SeeThe_WinD的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/SeeThe_WinD</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; SeeThe_WinD]]></copyright><item><title><![CDATA[IDEA中使用lombok]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106436020</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106436020</guid><author>SeeThe_WinD</author><pubDate>Sat, 30 May 2020 01:03:33 +0800</pubDate><description><![CDATA[下载插件



导入依赖

&lt;dependency&gt;
    &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
    &lt;artifactId&gt;lombok&lt;/artifactId&gt;
    &lt;version&gt;1.18.10&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;


使用lombok

在自定义的p.]]></description><category></category></item><item><title><![CDATA[jackson使用]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106436000</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106436000</guid><author>SeeThe_WinD</author><pubDate>Sat, 30 May 2020 00:57:55 +0800</pubDate><description><![CDATA[导入依赖

&lt;dependency&gt;
    &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
    &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
    &lt;version&gt;2.10.0&lt;/version&gt;
&lt;/dependency&gt;


解决乱码问题,配置文件中添加以下配置

    &lt;mvc:annotation-dri.]]></description><category></category></item><item><title><![CDATA[SpringMVC学习]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435992</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435992</guid><author>SeeThe_WinD</author><pubDate>Sat, 30 May 2020 00:56:30 +0800</pubDate><description><![CDATA[springMVC配置文件解决中文乱码

&lt;!--开启注解驱动--&gt;
&lt;mvc:annotation-driven&gt;
    &lt;!--解决JSON乱码--&gt;
    &lt;mvc:message-converters register-defaults="true"&gt;
        &lt;bean class="org.springframework.http.converter.StringHttpMessageConverter"&gt;
       .]]></description><category></category></item><item><title><![CDATA[Mybatis学习 ---缓存]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435974</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435974</guid><author>SeeThe_WinD</author><pubDate>Sat, 30 May 2020 00:53:48 +0800</pubDate><description><![CDATA[一级缓存 SqlSession级别
一级缓存也叫本地缓存。在Mybatis中，一级缓存是默认开启的。
一级缓存只存在于一个连接开启与关闭之间。在一个连接开启与关闭之间的查询结果会，存在一级缓存中。下一次再次查询此对象会直接从缓存中取出，而不再经过sql语句查询。
测试1：
 @Test
    public void myTest01(){
        SqlSession sqlSession = MybatisUtils.getSqlSession();
        BlogMapper map]]></description><category></category></item><item><title><![CDATA[Mybatis学习---动态SQL]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435946</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435946</guid><author>SeeThe_WinD</author><pubDate>Sat, 30 May 2020 00:46:56 +0800</pubDate><description><![CDATA[动态SQL语句标签

if
choose (when, otherwise)
trim (where, set)
foreach

IF标签
使用IF标签可以追加条件，达到用户如果输入了title就追加一个title搜索条件，输入了author就追加一个author搜索条件，都没有输入，就查询所有的形式。
&lt;select id="getBlogIf" parameterType="map"  resultType="blog" &gt;

    select * from mybatis.blog ]]></description><category></category></item><item><title><![CDATA[MyBatis--resultMap复杂数据查询]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435908</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435908</guid><author>SeeThe_WinD</author><pubDate>Sat, 30 May 2020 00:42:51 +0800</pubDate><description><![CDATA[使用ResultMap进行一对多的复杂数据查询
在学生与老师这样的多对一的关系，并且学生实体类中存储的是一个老师的对象
//学生实体
@Data
public class Student {
    private  int id;
    private String name;
    private Teacher teacher;//数据库中记录的此字段为tid
}

//教师实体
@Data
public class Teacher {
    private int id;
    privat]]></description><category></category></item><item><title><![CDATA[MyBatis配置学习]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435856</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435856</guid><author>SeeThe_WinD</author><pubDate>Sat, 30 May 2020 00:39:20 +0800</pubDate><description><![CDATA[配置：类型别名（typeAliases）
类型别名可为 Java 类型设置一个缩写名字。 它仅用于 XML 配置，意在降低冗余的全限定类名书写,配置方式有两种。
第一种：
&lt;typeAliases&gt;
  &lt;typeAlias alias="User" type="com.study.pojo.User"/&gt;
&lt;/typeAliases&gt;

当进行了上面这样的配置之后，在.xml文件中的resultType中就可以使用这个别名
&lt;select id="getUserL]]></description><category></category></item><item><title><![CDATA[MyBatis入门--创建第一个MyBatis程序]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435844</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435844</guid><author>SeeThe_WinD</author><pubDate>Sat, 30 May 2020 00:37:47 +0800</pubDate><description><![CDATA[创建一个数据库来操作

CREATE DATABASE `mybatis`;

USE `mybatis`;

CREATE TABLE `user`(

	`id` INT(20) NOT NULL COMMENT '用户ID' PRIMARY KEY,
	`name` VARCHAR(20) NOT NULL COMMENT '用户姓名' ,
	`pwd` VARCHAR(50) NOT NULL COMMENT '用户密码'
)ENGINE  = INNODB  DEFAULT CHARSET = .]]></description><category></category></item><item><title><![CDATA[数据库三大范式]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435815</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106435815</guid><author>SeeThe_WinD</author><pubDate>Sat, 30 May 2020 00:36:02 +0800</pubDate><description><![CDATA[第一范式:类似原子性，每个表中字段不可再分
第二范式：前提是满足第一范式，每个表中只描述一件事情
第三范式：前提是满足第一和第二范式，每个秒中的每个字段只与主键直接相关

但是在商业化项目中，数据库的设计不会完全满足三大范式，
这会导致有很多的多表联查，降低性能，这个情况下需要性能优先


关联查询的表，不可以超过三张表


联表查询的越多，性能越低


故意给某些表添加一些冗余字段，这样可以把原来多表查询变为多表查询


故意增加一些计算列，每次插入数据，该字段值加+1



...]]></description><category></category></item><item><title><![CDATA[MySQL学习---事务]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106265198</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106265198</guid><author>SeeThe_WinD</author><pubDate>Thu, 21 May 2020 18:39:24 +0800</pubDate><description><![CDATA[事务的四个特性(ACID)

原子性（atomicity）

操作同一对象的事务，要么同时成功，要么同时失败

一致性（consistency）

事务的最终结果是保持一致

隔离性（isolation）

多个事务之间互不干扰

持久性（durability）

事务一旦提交到数据库中，那么它在数据库中的对应数据状态的变更，就已经永久保存到数据库中，不可逆转
脏读  不可重复读  幻读
脏读：一个事务读取到了来自另外一个事务未提交的数据
不可重复读：指在一个事务内读取到了别的事务插入的数据，导致前后读取不]]></description><category></category></item><item><title><![CDATA[操作MySQL]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106265185</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106265185</guid><author>SeeThe_WinD</author><pubDate>Thu, 21 May 2020 18:37:29 +0800</pubDate><description><![CDATA[添加数据
-- insert into 表名（'字段1','字段二'） values('值1','值2');
-- 主键设置为自增 可以不手动添加
--字段是可以省略的，但是字段值需要一一对应
insert into 'grade'('gradename') values('高一');

 --对同一字段直接插入两行数据
INSERT INTO `grade`(`gradename`)
VALUES ('大一'),('大二');

--对应属性值添加
INSERT INTO `grade`(`gradeid]]></description><category></category></item><item><title><![CDATA[学习MySQL]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106245989</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106245989</guid><author>SeeThe_WinD</author><pubDate>Wed, 20 May 2020 22:29:41 +0800</pubDate><description><![CDATA[命令行操作
net start mysql; --启动mysql服务(需要在管理员权限下使用)


show databases;  --查看所有数据库
use 库名; --切换数据库
show tables; --查看所有的表

describe 表名; --显示表中所有信息
create database 库名；--创建一个数据库

desc student; --查看表的结构

--单行注释   /* 多行注释*/

操作数据库

创建数据库

CREATE DATABASE IF NOT EXIST]]></description><category></category></item><item><title><![CDATA[JavaScript基础]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106245949</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106245949</guid><author>SeeThe_WinD</author><pubDate>Wed, 20 May 2020 22:26:28 +0800</pubDate><description><![CDATA[‘use strict’  严格审查模式，进行代码校验提示，写在JavaScript代码的最上方

&lt;Script&gt;
'use strict'    

......代码

&lt;/Script&gt;

数组
赋值：
array  = [1,2,3,5,6,'1']

数组方法：

length   – array.length  获取数组长度


//通过length方法可以直接对array数组的长度进行赋值，
//如果超过现有长度，则会在原有数组中加入超出长度的undefind的空值
.]]></description><category></category></item><item><title><![CDATA[Java学习--基础--Thread线程]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106245877</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106245877</guid><author>SeeThe_WinD</author><pubDate>Wed, 20 May 2020 22:22:13 +0800</pubDate><description><![CDATA[开启多线程操作方式1-------继承Thread(不推荐，避免单继承局限)


创建一个自由类继承Thread类
public class TestThread01 extends Thread{}



重写run()方法


@Override
public void run() {
    //重写run方法
    for (int i = 0; i &lt; 20; i++) {
        System.out.println("run"+i);
    }
    
    //supe]]></description><category></category></item><item><title><![CDATA[Java学习---基础---Labmda表达式]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106245858</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106245858</guid><author>SeeThe_WinD</author><pubDate>Wed, 20 May 2020 22:20:49 +0800</pubDate><description><![CDATA[简化过程

外部类

//创建函数式接口  只有一个方法
interface test01{
    void love();
}

//外部实现类
class Person implements test01{
    @Override
    public void love() {
        System.out.println("测试1");
    }
}

//写在main()中
//测试
Person person = new Person();
person.love();


内部]]></description><category></category></item><item><title><![CDATA[Java基础---static关键字]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106159555</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106159555</guid><author>SeeThe_WinD</author><pubDate>Sat, 16 May 2020 15:13:22 +0800</pubDate><description><![CDATA[static关键字所修饰的属性或者方法为公共属性与方法可以在类没有实例化的情况下通过类名直接调用，而非static的属性或者方法则必须在实例化类之后才能够调用。
class Student{

    private String name;
    private Integer snum;
    static String collage;
    //构造方法 可以调用static属性
    public Student(String name,Integer snum,String collag]]></description><category></category></item><item><title><![CDATA[Java基础--引用类型内存分析及垃圾产生]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106159389</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106159389</guid><author>SeeThe_WinD</author><pubDate>Sat, 16 May 2020 15:04:31 +0800</pubDate><description><![CDATA[引用数据类型的本质：使用new关键字开辟一块新的堆内存，可以被多个栈内存指向。

引用传递：
同一类型的引用数据类型可以进行引用传递，即：
	Person per1 = new Person();
	Person per2 = per1;

此时Person per2 = per1;语句执行完毕没有开辟新的内存，per2与per1指向同一个堆内存。

在有引用传递的情况下进行赋值
实例代码：
class Person{
    String name;
    int age;
    public voi]]></description><category></category></item><item><title><![CDATA[IDEA中整合SSM时出现： java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListe]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106124884</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106124884</guid><author>SeeThe_WinD</author><pubDate>Thu, 14 May 2020 17:47:09 +0800</pubDate><description><![CDATA[IDEA中整合SSM时出现：
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误
控制台报错为：
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

错误为：ContextLoaderListener找不到
解决方案：
File–&gt;Project St]]></description><category></category></item><item><title><![CDATA[SSM整合中出现错误Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106124703</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106124703</guid><author>SeeThe_WinD</author><pubDate>Thu, 14 May 2020 17:34:39 +0800</pubDate><description><![CDATA[Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias
ssm整合时，tomcat启动的时候报错。出现 Could not resolve type alias 'bookMapper’异常。
解决方案：在sqlSessionFactory中加入配置别名所在的包即可
&lt;bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryB]]></description><category></category></item><item><title><![CDATA[SSM整合中出现错误java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.get]]></title><link>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106124522</link><guid>https://blog.youkuaiyun.com/SeeThe_WinD/article/details/106124522</guid><author>SeeThe_WinD</author><pubDate>Thu, 14 May 2020 17:26:57 +0800</pubDate><description><![CDATA[java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()Ljava/lang/Integer; 报错解决
测错误肯能是SSM的版本问题，在pom中修改版本即可
			&lt;dependency&gt;
            &lt;groupId&gt;org.mybatis&lt;/groupId&gt;
            &lt;artifactId&g]]></description><category></category></item></channel></rss>