<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[bai大伯伯的博客]]></title><description><![CDATA[bai大伯伯的博客]]></description><link>https://blog.csdn.net/whitesun123</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; whitesun123]]></copyright><item><title><![CDATA[MyBatis中动态sql  传入枚举类型与String字段对比]]></title><link>https://blog.csdn.net/whitesun123/article/details/103269448</link><guid>https://blog.csdn.net/whitesun123/article/details/103269448</guid><author>whitesun123</author><pubDate>Wed, 27 Nov 2019 09:27:04 +0800</pubDate><description><![CDATA[sql如果不想将逻辑写在sql或代码中分离出来的话可以使用mybatis标签 
mybatis 做简单条件判断的时候可以选用&lt;choose/&gt; &lt;when/&gt;标签
当传入的封装对象中有枚举类型的时候是无法将枚举类型直接和字符串继续比较的，如下图


&lt;choose&gt;
 &lt;when test="queryType == 'DAY'"&gt;
...]]></description><category></category></item><item><title><![CDATA[liinux使用 笔记]]></title><link>https://blog.csdn.net/whitesun123/article/details/99730017</link><guid>https://blog.csdn.net/whitesun123/article/details/99730017</guid><author>whitesun123</author><pubDate>Mon, 19 Aug 2019 15:19:27 +0800</pubDate><description><![CDATA[1.上传文件到服务器名字乱码但是有一个通过复制删除不了

首先执行ls -i命令，此时在文件前面会出现一个数字，这个数字是文件的节点号：

然后find -inum 节点号 -delete 删掉那个文件



2.ls -lh 查看文件大小 （以KB,M展示）
...]]></description><category></category></item><item><title><![CDATA[Java 前端使用Ajax通过FormData传递文件和表单数据到后台]]></title><link>https://blog.csdn.net/whitesun123/article/details/86609042</link><guid>https://blog.csdn.net/whitesun123/article/details/86609042</guid><author>whitesun123</author><pubDate>Wed, 23 Jan 2019 15:11:22 +0800</pubDate><description><![CDATA[
&amp;lt;form id=&quot;testform&quot; method=&quot;post&quot; &amp;gt;
		&amp;lt;input type=&quot;text&quot; id=&quot;name&quot; name=&quot;name&quot; /&amp;gt;	
		&amp;lt;input type=&quot;text&quot; name=&quot;age&quot; /&amp;gt;
		&amp;lt;input type=&quo]]></description><category></category></item><item><title><![CDATA[spring mvc前台向后台传递表单数据的几种方式及后台数据的获取]]></title><link>https://blog.csdn.net/whitesun123/article/details/86577694</link><guid>https://blog.csdn.net/whitesun123/article/details/86577694</guid><author>whitesun123</author><pubDate>Tue, 22 Jan 2019 10:21:52 +0800</pubDate><description><![CDATA[一、一般前台向后台提交数据都会用form表单提交

    表单提交信息后最好的获取方式就是映射为实体


&amp;lt;form id=&quot;testform&quot; method=&quot;post&quot;&amp;gt;
		&amp;lt;input type=&quot;text&quot; name=&quot;name&quot; /&amp;gt;	
		&amp;lt;input type=&quot;text&quot; name=&quot;age&quot; /&a]]></description><category></category></item><item><title><![CDATA[navicat for mysql 建表中文引号问题]]></title><link>https://blog.csdn.net/whitesun123/article/details/86139941</link><guid>https://blog.csdn.net/whitesun123/article/details/86139941</guid><author>whitesun123</author><pubDate>Wed, 09 Jan 2019 11:41:23 +0800</pubDate><description><![CDATA[1.用中文引号



创建成功，但是表名有引号



2.表名不加引号，创建成功





但有引号



3.表名用英文引号



报错



同样属性字段也不能用英文字段

4，正确方法


create table test8(
    id int UNSIGNED auto_increment,
    name varchar(18),
    password varchar(100...]]></description><category></category></item><item><title><![CDATA[mysql 压缩包版安装大坑]]></title><link>https://blog.csdn.net/whitesun123/article/details/86086281</link><guid>https://blog.csdn.net/whitesun123/article/details/86086281</guid><author>whitesun123</author><pubDate>Tue, 08 Jan 2019 17:58:17 +0800</pubDate><description><![CDATA[用mysql的时候不想用安装版的mysql，就下载了压缩版的。

1.下载mysql

　https://dev.mysql.com/downloads/mysql/



2.解压到你喜欢的地方在解压目录添加my.ini文件


[mysql]
default-character-set=utf8
[mysqld]
basedir=C:\mysql-5.7.18-winx64
datadir=C...]]></description><category></category></item><item><title><![CDATA[Mysql varchar长度问题]]></title><link>https://blog.csdn.net/whitesun123/article/details/86074941</link><guid>https://blog.csdn.net/whitesun123/article/details/86074941</guid><author>whitesun123</author><pubDate>Tue, 08 Jan 2019 14:36:17 +0800</pubDate><description><![CDATA[以前项目中前端输入框一般都不做长度限制，但是如果有人非要试一下你的允许最长也没有办法，那就前端加个限定吧

以前一直没有弄清数据库的字符长和java代码的字符长有什么关联和区分。

后来看到资料总算弄清：


MySQL 5.0 以上的版本：

1、一个汉字占多少长度与编码有关：

UTF－8：一个汉字＝3个字节

GBK：一个汉字＝2个字节

2、varchar(n) 表示 n 个字符，无论汉字...]]></description><category></category></item><item><title><![CDATA[EasyUi Combobox添加一个选择所有的选项]]></title><link>https://blog.csdn.net/whitesun123/article/details/84859198</link><guid>https://blog.csdn.net/whitesun123/article/details/84859198</guid><author>whitesun123</author><pubDate>Thu, 06 Dec 2018 16:23:06 +0800</pubDate><description><![CDATA[这两人在用easyui写一个数据管理表格的练习，其中有一个查询以下拉框的形式展示数据，从后台获取数据很简单，但是我还想添加一个查询所有的选项，就是选中所有，不做数据参数的传入，并且不想通过改变后台查询的数据达到效果，那么我需要在前台修改一下返回的数据再加载到combobox里面。达到下图效果。



js代码如下


$.ajax({
		 url:'role/getAllRole',
		 da...]]></description><category></category></item><item><title><![CDATA[关于email输入框自动补全]]></title><link>https://blog.csdn.net/whitesun123/article/details/84750087</link><guid>https://blog.csdn.net/whitesun123/article/details/84750087</guid><author>whitesun123</author><pubDate>Mon, 03 Dec 2018 10:30:43 +0800</pubDate><description><![CDATA[easyui项目中需要添加一个邮箱自动补全功能，但是自己写了一个combobox不尽人意，jQueryUi虽然有功能，但是和easyui冲突，也放弃了，最后选择datalist实现。


&amp;lt;input id=&quot;email&quot; list=&quot;input_list&quot; name=&quot;email&quot; autocomplete=&quot;off&quot; disableautocomplete class=&quot;easyui-v...]]></description><category></category></item><item><title><![CDATA[重新安装eclipse后的一些使用配置]]></title><link>https://blog.csdn.net/whitesun123/article/details/84189829</link><guid>https://blog.csdn.net/whitesun123/article/details/84189829</guid><author>whitesun123</author><pubDate>Sat, 17 Nov 2018 16:33:56 +0800</pubDate><description><![CDATA[1.修改好jdk版本



2.配置好服务器（tomcat）



3..修改字符集



4.修改字体大小，我一般16或18(general&amp;gt;appearence&amp;gt;color and fonts )

5.添加代码补全提示(添加a~z和A~Z)







 

HTML   XML...

6提示太多而且都不正确，去掉



 

7.背景色

v



8.配置maven仓库
...]]></description><category></category></item><item><title><![CDATA[java 程序题 判断两个字符串是否是同构的]]></title><link>https://blog.csdn.net/whitesun123/article/details/82769837</link><guid>https://blog.csdn.net/whitesun123/article/details/82769837</guid><author>whitesun123</author><pubDate>Wed, 19 Sep 2018 11:43:00 +0800</pubDate><description><![CDATA[两个个字符串的每个字母都匹配同一个映射关系，比如egg -&amp;gt; add的映射关系就是：e-&amp;gt;a, g-&amp;gt;d; foo与bar显然不满足，因为o-&amp;gt;a同事o-&amp;gt;r；paper和title满足，p-&amp;gt;t, a-&amp;gt;i, e-&amp;gt;l, r-&amp;gt;e。现在用map保存映射关系

方法一:


public static boolean isIsomorphic(...]]></description><category></category></item><item><title><![CDATA[猴子报数选国王问题]]></title><link>https://blog.csdn.net/whitesun123/article/details/82720775</link><guid>https://blog.csdn.net/whitesun123/article/details/82720775</guid><author>whitesun123</author><pubDate>Sun, 16 Sep 2018 09:44:40 +0800</pubDate><description><![CDATA[问题: 猴子选大王，假设有M个猴子围成一圈，从1开始报数，数到N的猴子退出，最后剩下的猴子就是大王， 写出程序求出最后是大王的那只猴子最初的位置。

解析:问题本来只需要求解剩下猴子的序号,现在提出一个要求,要求把呗淘汰猴子的顺序记录下来,只需要再创建一个List即可


import java.util.ArrayList;
import java.util.List;

/*
 * 
 * 猴...]]></description><category></category></item><item><title><![CDATA[合并有序数组]]></title><link>https://blog.csdn.net/whitesun123/article/details/80631354</link><guid>https://blog.csdn.net/whitesun123/article/details/80631354</guid><author>whitesun123</author><pubDate>Sat, 09 Jun 2018 11:21:27 +0800</pubDate><description><![CDATA[Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:The number of elements initialized in nums1 and nums2 are m and n respectively.You may assume that nums...]]></description><category></category></item><item><title><![CDATA[合并两个有序链表]]></title><link>https://blog.csdn.net/whitesun123/article/details/80029823</link><guid>https://blog.csdn.net/whitesun123/article/details/80029823</guid><author>whitesun123</author><pubDate>Sat, 21 Apr 2018 15:03:33 +0800</pubDate><description><![CDATA[将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例：输入：1-&amp;gt;2-&amp;gt;4, 1-&amp;gt;3-&amp;gt;4
输出：1-&amp;gt;1-&amp;gt;2-&amp;gt;3-&amp;gt;4-&amp;gt;4
思路一:用其他数组呀什么的...思路二:public ListNode mergeTwoLists(ListNode l1, ListNode l2) {
    	...]]></description><category></category></item><item><title><![CDATA[反转单链表]]></title><link>https://blog.csdn.net/whitesun123/article/details/80019958</link><guid>https://blog.csdn.net/whitesun123/article/details/80019958</guid><author>whitesun123</author><pubDate>Fri, 20 Apr 2018 16:02:14 +0800</pubDate><description><![CDATA[反转一个单链表。进阶:链表可以迭代或递归地反转。你能否两个都实现一遍？解法一:使用额外空间,比如数组,stack等解法二:迭代解法定义3个指针，分别指向当前遍历到的结点、它的前一个结点及后一个结点。在遍历过程中，首先记录当前节点的后一个节点，然后将当前节点的后一个节点指向前一个节点，其次前一个节点再指向当前节点，最后再将当前节点指向最初记录的后一个节点，如此反复，直到当前节点的后一个节点为NULL...]]></description><category></category></item><item><title><![CDATA[删除指定节点]]></title><link>https://blog.csdn.net/whitesun123/article/details/80018074</link><guid>https://blog.csdn.net/whitesun123/article/details/80018074</guid><author>whitesun123</author><pubDate>Fri, 20 Apr 2018 14:18:46 +0800</pubDate><description><![CDATA[请编写一个函数，使其可以删除某个链表中给定的（非末尾的）节点，您将只被给予要求被删除的节点。比如：假设该链表为 1 -&amp;gt; 2 -&amp;gt; 3 -&amp;gt; 4  ，给定您的为该链表中值为 3 的第三个节点，那么在调用了您的函数之后，该链表则应变成 1 -&amp;gt; 2 -&amp;gt; 4 。思路: 一般我们删除某个节点都要知道前一个节点,现在不知道前一个节点,那么就赋值,假&quot; 删除&quot;这个节点,实际删...]]></description><category></category></item><item><title><![CDATA[删除链表指定位置节点]]></title><link>https://blog.csdn.net/whitesun123/article/details/80018059</link><guid>https://blog.csdn.net/whitesun123/article/details/80018059</guid><author>whitesun123</author><pubDate>Fri, 20 Apr 2018 14:13:51 +0800</pubDate><description><![CDATA[给定一个链表，删除链表的倒数第 n 个节点，并且返回链表的头结点。示例：给定一个链表: 1-&amp;gt;2-&amp;gt;3-&amp;gt;4-&amp;gt;5, 和 n = 2.

当删除了倒数第二个节点后，链表变为 1-&amp;gt;2-&amp;gt;3-&amp;gt;5.进阶：你能尝试使用一趟扫描实现吗？思路一:先得到一链表大小public ListNode removeNthFromEnd_2(ListNode head, in...]]></description><category></category></item><item><title><![CDATA[数数并说(Count And Say)]]></title><link>https://blog.csdn.net/whitesun123/article/details/79999618</link><guid>https://blog.csdn.net/whitesun123/article/details/79999618</guid><author>whitesun123</author><pubDate>Thu, 19 Apr 2018 09:46:45 +0800</pubDate><description><![CDATA[报数序列是指一个整数序列，按照其中的整数的顺序进行报数，得到下一个数。其前五项如下：1.     1
2.     11
3.     21
4.     1211
5.     111221给定一个正整数 n ，输出报数序列的第 n 项。注意：整数顺序将表示为一个字符串。解法一:乱糟糟版public String countAndSay(int n) {
        if( n == 1)
...]]></description><category></category></item><item><title><![CDATA[Implement  strStr]]></title><link>https://blog.csdn.net/whitesun123/article/details/79972696</link><guid>https://blog.csdn.net/whitesun123/article/details/79972696</guid><author>whitesun123</author><pubDate>Tue, 17 Apr 2018 15:54:35 +0800</pubDate><description><![CDATA[给定一个 haystack 字符串和一个 needle 字符串，在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在，则返回  -1。示例 1:输入: haystack = &quot;hello&quot;, needle = &quot;ll&quot;
输出: 2思路一:这道题让我们在一个字符串中找另一个字符串第一次出现的位置，那我们首先要做一些判断，如果子字符串为空，则返回0，如果子...]]></description><category></category></item><item><title><![CDATA[字符串转整数（atoi）]]></title><link>https://blog.csdn.net/whitesun123/article/details/79962791</link><guid>https://blog.csdn.net/whitesun123/article/details/79962791</guid><author>whitesun123</author><pubDate>Mon, 16 Apr 2018 16:46:06 +0800</pubDate><description><![CDATA[/*实现 atoi，将字符串转为整数。提示：仔细考虑所有的输入情况。如果你想挑战自己，请不要看下面的示例，并尽可能独立思考所有的情况。说明：这道题解释的比较模糊（即没有指定输入格式）。你需要事先汇总所有的输入情况。*/ /*字符串题一般考查的都是边界条件、特殊情况的处理。所以遇到此题一定要问清楚各种条件下的输入输出应该是什么样的。这里已知的特殊情况有：能够排除首部的空格，从第一个非空字符开始计算允...]]></description><category></category></item></channel></rss>