<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[CrownP的博客]]></title><description><![CDATA[渣渣的自我救赎]]></description><link>https://blog.csdn.net/CrownP</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; CrownP]]></copyright><item><title><![CDATA[《8分钟讲懂一个算法》观看笔记]]></title><link>https://blog.csdn.net/CrownP/article/details/104041608</link><guid>https://blog.csdn.net/CrownP/article/details/104041608</guid><author>CrownP</author><pubDate>Sun, 19 Jan 2020 15:51:37 +0800</pubDate><description><![CDATA[一、算法的意义

例子：



三、时间复杂度与大O表示法

越往左边，算法越好。
四、算法分析法则及其他渐进符号
法则1 for循环

法则2 嵌套的for循环

法则1的扩展，由内而外的计算复杂度
法则3 顺序语句

简单概括，谁大听谁的。
法则4 if/else语句

一些渐进符号

大O：一般用来表示最坏复杂度，有明确的边界上界
大Ω：最优复杂度，有下界
大θ（theta）：西塔表示法，同...]]></description><category></category></item><item><title><![CDATA[GridFsTemplate如何配置使用自定义的store bucket存储桶]]></title><link>https://blog.csdn.net/CrownP/article/details/103887116</link><guid>https://blog.csdn.net/CrownP/article/details/103887116</guid><author>CrownP</author><pubDate>Wed, 08 Jan 2020 10:55:35 +0800</pubDate><description><![CDATA[一.思路
在使用MongoDB的GridFS的时候，默认存储文件的是fs的存储桶，如navicat所示

那么假如我使用自定义的存储桶fs1，该怎么设置呢？
首先，查看一下我们通过注解使用的GridFsTemplate的源码，发现提供了构造参数
public GridFsTemplate(MongoDbFactory dbFactory, MongoConverter converter, @Nu...]]></description><category></category></item><item><title><![CDATA[java读取txt文本工具类，按行读取txt返回List集合，读取所有返回String]]></title><link>https://blog.csdn.net/CrownP/article/details/103816185</link><guid>https://blog.csdn.net/CrownP/article/details/103816185</guid><author>CrownP</author><pubDate>Fri, 03 Jan 2020 13:56:24 +0800</pubDate><description><![CDATA[一. 关键技术
利用好

]]></description><category></category></item><item><title><![CDATA[VMware安装win7后，安装VMware Tools时报错安装程序无法继续。本程序需要您将此虚拟机上安装的操作系统更新到SP1]]></title><link>https://blog.csdn.net/CrownP/article/details/103735800</link><guid>https://blog.csdn.net/CrownP/article/details/103735800</guid><author>CrownP</author><pubDate>Sun, 29 Dec 2019 23:25:31 +0800</pubDate><description><![CDATA[具体报错：



倘若你用的是这样的镜像：cn_windows_7_enterprise_x64_dvd_x15-70741.iso

换镜像源、换镜像源、换镜像源！

换成带sp1的iso镜像：cn_windows_7_enterprise_with_sp1_x64_dvd_u_677685.iso

下载地址：


ed2k://|file|cn_windows_7_enterprise_w...]]></description><category></category></item><item><title><![CDATA[win10安装完notepad++后没有集成到右键菜单，通过添加注册表项方式添加]]></title><link>https://blog.csdn.net/CrownP/article/details/103755753</link><guid>https://blog.csdn.net/CrownP/article/details/103755753</guid><author>CrownP</author><pubDate>Sun, 29 Dec 2019 17:47:58 +0800</pubDate><description><![CDATA[win + R 快捷键打开运行，输入 regedit 打开注册表



找到 HKEY_CLASSES_ROOT/ * / shell

在 shell 项下新建项 Notepad++ ，Notepad++ 下新建command



双击项Notepad++ ，双击默认，修改数值数据为Notepad++

新建字符串值



双击command，修改默认项的数值数据为：notepad++路...]]></description><category></category></item><item><title><![CDATA[获取全组合算法，比如输入A,B,C 得到A、B、C、AB、AC、BC、ABC]]></title><link>https://blog.csdn.net/CrownP/article/details/102706585</link><guid>https://blog.csdn.net/CrownP/article/details/102706585</guid><author>CrownP</author><pubDate>Wed, 23 Oct 2019 17:32:54 +0800</pubDate><description><![CDATA[Java实现代码：


    public static void main(String[] args) {
        List&lt;String&gt; list = new ArrayList&lt;String&gt;(Arrays.asList("A", "B", "C", "D"));
        getFullAssembly(list);
    }

    pub...]]></description><category></category></item><item><title><![CDATA[IP信息解析和地理定位，以及免费GeoLite2-City.mmdb的使用教程]]></title><link>https://blog.csdn.net/CrownP/article/details/101346838</link><guid>https://blog.csdn.net/CrownP/article/details/101346838</guid><author>CrownP</author><pubDate>Wed, 25 Sep 2019 11:12:32 +0800</pubDate><description><![CDATA[demo源代码：https://github.com/CrownP/geolite2_demo

一、需求

通过输入一个IP地址，解析并获取信息，比如国家、国家代码、省份、省份代码、城市、邮政编码、经纬度等等信息

例如，解析ip（128.101.101.101）的信息如下：





二、实现形式

使用在线第三方提供的api：

ip-api.com
	ip.taotao.com
	百度地...]]></description><category></category></item><item><title><![CDATA[The alias 'GeneratedCriteria' is already mapped to the value*** 报错]]></title><link>https://blog.csdn.net/CrownP/article/details/95311969</link><guid>https://blog.csdn.net/CrownP/article/details/95311969</guid><author>CrownP</author><pubDate>Wed, 10 Jul 2019 10:20:48 +0800</pubDate><description><![CDATA[如果是springboot项目，修改
mybatis-spring-boot-starter
2.0.1
为 2.0.0

]]></description><category></category></item><item><title><![CDATA[什么是java OOM？如何分析及解决oom问题？]]></title><link>https://blog.csdn.net/CrownP/article/details/90717405</link><guid>https://blog.csdn.net/CrownP/article/details/90717405</guid><author>CrownP</author><pubDate>Fri, 31 May 2019 15:40:28 +0800</pubDate><description><![CDATA[1）什么是OOM？
OOM，全称“Out Of Memory”，翻译成中文就是“内存用完了”，来源于java.lang.OutOfMemoryError。看下关于的官方说明： Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory c...]]></description><category></category></item><item><title><![CDATA[Java二十五道算法题及其代码实现]]></title><link>https://blog.csdn.net/CrownP/article/details/90653622</link><guid>https://blog.csdn.net/CrownP/article/details/90653622</guid><author>CrownP</author><pubDate>Wed, 29 May 2019 01:16:03 +0800</pubDate><description><![CDATA[目录

一、题目：古典问题：有一对兔子，从出生后第3个月起每个月都生一对兔子，小兔子长到第三个月后每个月又生一对兔子，假如兔子都不死，问每个月的兔子总数为多少？ //这是一个菲波拉契数列问题

二、题目：判断101-200之间有多少个素数，并输出所有素数。程序分析：判断素数的方法：用一个数分别去除2到sqrt(这个数)，如果能被整除， 则表明此数不是素数，反之是素数。

三、题目：打印出所有...]]></description><category></category></item><item><title><![CDATA[insert插入新增记录后如何获取自增的主键id？]]></title><link>https://blog.csdn.net/CrownP/article/details/89075461</link><guid>https://blog.csdn.net/CrownP/article/details/89075461</guid><author>CrownP</author><pubDate>Sun, 07 Apr 2019 21:33:24 +0800</pubDate><description><![CDATA[需求：由于主键是自增的int型，insert操作时服务端并未对其赋值，导致在insert时封装的对象其主键是null的，可是我们需要获取到主键



使用环境：逆向的mybatis



实现方式：修改mapper对象的insert方法，如下：

    &lt;insert id="insert" useGeneratedKeys="true" keyProperty="examId...]]></description><category></category></item><item><title><![CDATA[JJWT：JWS, JWE, JWK, JWA, JWT]]></title><link>https://blog.csdn.net/CrownP/article/details/88936117</link><guid>https://blog.csdn.net/CrownP/article/details/88936117</guid><author>CrownP</author><pubDate>Mon, 01 Apr 2019 14:11:45 +0800</pubDate><description><![CDATA[JWS, JWE, JWK, JWA, JWT

JWS：JSON Web Signature，Digital signature/HMAC specification（签名）

JWE：JSON Web Encryption，Encryption specification（加密）

JWK：JSON Web Key，Public key specification

JWA：JSON Web ...]]></description><category></category></item><item><title><![CDATA[Java中int或long等整型数值如何转换为无符号整数]]></title><link>https://blog.csdn.net/CrownP/article/details/88834275</link><guid>https://blog.csdn.net/CrownP/article/details/88834275</guid><author>CrownP</author><pubDate>Wed, 27 Mar 2019 12:49:18 +0800</pubDate><description><![CDATA[Java8 为 Integer、Long包装类增加了如下方法：


	static String toUnsignedString(int/long i)：将指定int或long型整数转换为无符号整数对应的字符串。
	
	
	static String toUnsignedString(int/long i, int radix)：将指定int或long型整数转换为指定进制的无符号整数对应...]]></description><category></category></item><item><title><![CDATA[URL传Base64 造成报错 Illegal base64 character 20]]></title><link>https://blog.csdn.net/CrownP/article/details/88785081</link><guid>https://blog.csdn.net/CrownP/article/details/88785081</guid><author>CrownP</author><pubDate>Mon, 25 Mar 2019 00:40:14 +0800</pubDate><description><![CDATA[报错如下：
error=Internal Server Error, message=Illegal base64 character 20,
trace=java.lang.IllegalArgumentException: Illegal base64 character 20
 at java.util.Base64$Decoder.decode0(Base64.java:714)
...]]></description><category></category></item><item><title><![CDATA[阿里云Contos7配置安装jdk、tomcat、mysql5.7和部署javaweb项目教程]]></title><link>https://blog.csdn.net/CrownP/article/details/88678558</link><guid>https://blog.csdn.net/CrownP/article/details/88678558</guid><author>CrownP</author><pubDate>Wed, 20 Mar 2019 10:52:22 +0800</pubDate><description><![CDATA[我的配置：

     阿里云CentOS7服务器：CentOS Linux release 7.3.1611 (Core)

     JDK：jdk-8u201-linux-x64.tar.gz

     Tomcat：apache-tomcat-8.5.37.tar.gz

     mysql：5.7

下载链接：JDK：http...]]></description><category></category></item><item><title><![CDATA[Java各种排序算法代码分析]]></title><link>https://blog.csdn.net/CrownP/article/details/88564785</link><guid>https://blog.csdn.net/CrownP/article/details/88564785</guid><author>CrownP</author><pubDate>Fri, 15 Mar 2019 00:50:16 +0800</pubDate><description><![CDATA[Java 冒泡排序、堆排序、插入排序、归并操作、快速排序、希尔排序、选择排序。


package prms.utils.sort;
 
import java.util.Arrays;
 
/**
 * @ClassName:     SortUtils
 * @Description:  &amp;lt;p&amp;gt; 排序算法 工具类 &amp;lt;/p&amp;gt;
 * @author         edga...]]></description><category></category></item><item><title><![CDATA[数据结构复习：队列]]></title><link>https://blog.csdn.net/CrownP/article/details/88564678</link><guid>https://blog.csdn.net/CrownP/article/details/88564678</guid><author>CrownP</author><pubDate>Fri, 15 Mar 2019 00:44:03 +0800</pubDate><description><![CDATA[1、什么是队列？

队列（Queue）：具有一定操作约束的线性表。只能在一端插入，而在另一端删除。

数据插入：入队列（AddQ）
	数据删除：出队列（DeleteQ）
	先来先服务
	先进先出：FIFO


2、队列的抽象数据类型描述

类型名称：队列(Queue)数据对象集：一个有0个或多个元素的有穷线性表。操作集：长度为MaxSize的队列Q 属于Queue，队列元素item 属于El...]]></description><category></category></item><item><title><![CDATA[数据结构复习：堆栈]]></title><link>https://blog.csdn.net/CrownP/article/details/88556372</link><guid>https://blog.csdn.net/CrownP/article/details/88556372</guid><author>CrownP</author><pubDate>Fri, 15 Mar 2019 00:03:31 +0800</pubDate><description><![CDATA[1、堆栈的抽象数据类型描述

堆栈(Stack)：具有一定操作约束的线性表。只在一端（栈顶，Top）做插入、删除

插入数据：入栈（push）
	删除数据：出栈（pop）
	后入先出：Last In First Out（LIFO）
数据对象集：一个有0个或多个元素的有穷线性表

操作集：长度为MaxSize的堆栈S属于Stack，堆栈元素item属于ElementType

Stack Creat...]]></description><category></category></item><item><title><![CDATA[数据结构复习：线性表及其实现]]></title><link>https://blog.csdn.net/CrownP/article/details/88368017</link><guid>https://blog.csdn.net/CrownP/article/details/88368017</guid><author>CrownP</author><pubDate>Wed, 13 Mar 2019 16:33:07 +0800</pubDate><description><![CDATA[一、概念

1、线性结构是数据结构里最基础也是最简单的一种数据结构类型，其中典型的一种叫“线性表”。

2、“线性表（Linear List）”：由同类型数据元素构成有序序列的线性结构

表中元素个数称为线性表的长度
	线性表没有元素时，称为空表
	表起始位置称表头，表结束位置称表尾
3、线性表的抽象数据类型描述：

类型名称：线性表（List）
	数据对象集：线性表是 n（&amp;gt;=0）个元素构...]]></description><category></category></item><item><title><![CDATA[数据结构复习：解决最大子列和问题的四种算法来看时间复杂度优化的重要性]]></title><link>https://blog.csdn.net/CrownP/article/details/88313835</link><guid>https://blog.csdn.net/CrownP/article/details/88313835</guid><author>CrownP</author><pubDate>Thu, 07 Mar 2019 17:45:46 +0800</pubDate><description><![CDATA[给定N个整数的序列｛A1,A2,····,An｝，求函数 的值

      即从A1到An的的这一连续的一个整数序列中，求出某一连续的一段子列的最大的和是多少。负数就返回0结束。





算法1


int maxSubseqSum1(int A[],int N)
{
  int i,j,k;
  int ThisSum,MaxSum = 0;
  for( i = 0;...]]></description><category></category></item></channel></rss>