<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[kiwi's garden]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/zhanglei0107</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; zhanglei0107]]></copyright><item><title><![CDATA[前后端分离项目合并部署]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/138628670</link><guid>https://blog.csdn.net/zhanglei0107/article/details/138628670</guid><author>zhanglei0107</author><pubDate>Thu, 09 May 2024 19:45:56 +0800</pubDate><description><![CDATA[将dist目录下的index.html以及static目录拷贝至后端工程的src/main/resources目录下的static文件夹（若没有，则创建）。若启动后访问不到index.html,提示http 404，可能是打包出的内容有问题，可以尝试将前端工程重新打包一遍。在web工程下使用npm run build指令，在dist目录下会生成index.html以及static目录。网上说的配置resource handler之类的不需要（springboot 2.0以上）]]></description><category></category></item><item><title><![CDATA[spring多例模式]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/132896667</link><guid>https://blog.csdn.net/zhanglei0107/article/details/132896667</guid><author>zhanglei0107</author><pubDate>Fri, 15 Sep 2023 10:24:26 +0800</pubDate><description><![CDATA[（1）在spring管理的类的@Component等注解后面增加@scope("prototype")（2）在获取spring管理bean的地方调整为。此时获取到的java bean为多例，非单例形式。]]></description><category></category></item><item><title><![CDATA[java利用SHA1withRSA进行签名与验签]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/53314048</link><guid>https://blog.csdn.net/zhanglei0107/article/details/53314048</guid><author>zhanglei0107</author><pubDate>Wed, 23 Nov 2016 23:45:15 +0800</pubDate><description><![CDATA[package com.encode;

import java.io.IOException;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.secur]]></description><category></category></item><item><title><![CDATA[eclipse编译时的一些问题]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/53139003</link><guid>https://blog.csdn.net/zhanglei0107/article/details/53139003</guid><author>zhanglei0107</author><pubDate>Sat, 12 Nov 2016 11:50:48 +0800</pubDate><description><![CDATA[代码中打了断点，debug窗口也显示线程在代码行上执行，但点击F6时相应的代码上就是没有执行。
放了个大招，将server上的项目remove了重新部署ok。]]></description><category></category></item><item><title><![CDATA[Jetty反向代理]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/50878067</link><guid>https://blog.csdn.net/zhanglei0107/article/details/50878067</guid><author>zhanglei0107</author><pubDate>Sun, 13 Mar 2016 15:26:43 +0800</pubDate><description><![CDATA[jetty 9.3.7中ProxyServlet类中取消了rewriteURI方法，以rewriteTarget方法取而代之。
rewriteTarget方法中返回的是反向代理的uri
import javax.servlet.http.HttpServletRequest;

import org.eclipse.jetty.proxy.AsyncProxyServlet;


public]]></description><category></category></item><item><title><![CDATA[nginx负载均衡]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/50783974</link><guid>https://blog.csdn.net/zhanglei0107/article/details/50783974</guid><author>zhanglei0107</author><pubDate>Wed, 02 Mar 2016 22:55:16 +0800</pubDate><description><![CDATA[具体可以参考官网

https://www.nginx.com/resources/admin-guide/load-balancer/

nginx配置两个节点的负载
weight不写值的话默认是1。upstream指令后面配置服务器组的名字。


server下面的 proxy_pass中配置相关协议以及服务器组的名字。





http {
    upstr]]></description><category></category></item><item><title><![CDATA[正则表达式]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/45541465</link><guid>https://blog.csdn.net/zhanglei0107/article/details/45541465</guid><author>zhanglei0107</author><pubDate>Wed, 06 May 2015 22:19:56 +0800</pubDate><description><![CDATA[正则表达式】




$符号匹配字符串的结束
比如正则表达式ab$，代表以字母ab结尾的字符串
字符串cdab便可以匹配ab$，abcd不可以匹配ab$




利用正则表达式统计字符的数量
比如统计"/“的数量
import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class]]></description><category></category></item><item><title><![CDATA[jQuery笔记]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/44347345</link><guid>https://blog.csdn.net/zhanglei0107/article/details/44347345</guid><author>zhanglei0107</author><pubDate>Tue, 17 Mar 2015 21:23:47 +0800</pubDate><description><![CDATA[选自jQuery API（http://api.jquery.com/id-selector/）

id selector
Description: Selects a single element with the given id attribute.

jQuery( "#id" )
id: An ID to search for, specified via the id at]]></description><category></category></item><item><title><![CDATA[链式快排]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12893033</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12893033</guid><author>zhanglei0107</author><pubDate>Sun, 20 Oct 2013 22:46:50 +0800</pubDate><description><![CDATA[链式快排(linked quicksort)实现。
保存一个p_small指针，p_small指针指向比pivot小的数。另外一个指针p一直往右移动，p_small指针只有在遇到比pivot小的数的时候才往前移动。当遇到比pivot小的元素时，p_small指针往右移动一位，然后交换p_small指针与指针p指向的节点的值。
tail在调用的时候需为NULL

#include
using]]></description><category></category></item><item><title><![CDATA[求数组中第k大的数]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12888299</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12888299</guid><author>zhanglei0107</author><pubDate>Sun, 20 Oct 2013 20:08:47 +0800</pubDate><description><![CDATA[#include
using namespace std;
void swap(int &i,int &j){
	int temp=i;
	i=j;
	j=temp;
};
int kmax(int *A,int low,int high,int k){
	if(k<=0){
		cout<<"false argument"<<endl;
		return -1;
	}
	int i=low;
	]]></description><category></category></item><item><title><![CDATA[实现以单词为单位的翻转字符串]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12780425</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12780425</guid><author>zhanglei0107</author><pubDate>Wed, 16 Oct 2013 14:41:59 +0800</pubDate><description><![CDATA[比如输入I love sports输出为sports love I
单词之间以空格隔开，单词之间可能有多个空格，字符串末尾也有可能有多个空格
思想为先实现整个字符串的翻转。
整个字符串的翻转可以设置两个指针，一个指针p1指向字符串开头，一个指针p2指向字符串末尾，p1从前后后移动，p2从后往前移动。
不断交换着两个指针指向的字符的值。直到p1>=p2停止这个过程


对翻转后的字符串]]></description><category></category></item><item><title><![CDATA[c语言str_cpy和strn_cpy实现]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12775911</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12775911</guid><author>zhanglei0107</author><pubDate>Wed, 16 Oct 2013 11:11:32 +0800</pubDate><description><![CDATA[char * strncpy ( char * destination, const char * source, size_t num );


Copy characters from string
Copies the first num characters of source to destination. If the end of the source C string (w]]></description><category></category></item><item><title><![CDATA[给定一个数字m和数字n，输出相应的所有排列]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12624577</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12624577</guid><author>zhanglei0107</author><pubDate>Fri, 11 Oct 2013 23:14:51 +0800</pubDate><description><![CDATA[#include
#include
using namespace std;


//int *a=new int[m];
void combination(int m,int n,string str){

if(m==0){
cout
cout
return;
}
for(int i=n;i>=m;i--){
//cout
char buf[10];
sprin]]></description><category></category></item><item><title><![CDATA[某公司笔试题]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12587041</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12587041</guid><author>zhanglei0107</author><pubDate>Thu, 10 Oct 2013 22:20:59 +0800</pubDate><description><![CDATA[题目大致是这样。有一排紧挨着的阶梯（假设阶梯有两侧封闭)，可以用来收集雨水，比如一组数据{8,4,7,2,5,9}。求出该组阶梯最大的蓄水量
每个数据代表该容器当前的高度。蓄水量用高度表示


比如{8,4,7,2,5,9},4这个可以蓄水（8-4），7可以蓄水（8-7），2可以蓄水（8-2），5可以蓄水(8-5)
当时少考虑了一种情况是，不仅该数比两边的数小情况下可以蓄水，而且该数的左]]></description><category></category></item><item><title><![CDATA[实现push,pop,max为O(1)的栈]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12527345</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12527345</guid><author>zhanglei0107</author><pubDate>Wed, 09 Oct 2013 22:37:17 +0800</pubDate><description><![CDATA[实现push,pop,max为O(1)的栈


创建一个结构体，该结构体存储栈的元素以及该元素入栈时栈中的最大元素。


插入元素时，若该元素大于栈顶元素对应的结构体的最大元素，则push的结构体对应的数据为该元素，最大的元素也是该元素。
否则，结构体对应的data成员为该元素，max_elem成员为之前栈顶元素对应的max_elem。把该结构体变量入栈即可。
出栈时直接弹出栈顶的]]></description><category></category></item><item><title><![CDATA[inside the C++ object model chapter 3 the semantics of data]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12374479</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12374479</guid><author>zhanglei0107</author><pubDate>Mon, 07 Oct 2013 15:31:45 +0800</pubDate><description><![CDATA[class X {};
class Y : public virtual X {};
class Z : public virtual X {};
class A : public Y, public Z {};


sizeof X yielded 1
sizeof Y yielded 8
sizeof Z yielded 8
sizeof A yielded 12]]></description><category></category></item><item><title><![CDATA[inside the C++ object model chapter 4 the semantics of function学习笔记]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12343609</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12343609</guid><author>zhanglei0107</author><pubDate>Sun, 06 Oct 2013 16:25:13 +0800</pubDate><description><![CDATA[C++支持3种类型的成员函数： static, nonstatic, and  virtual.


One C++ design criterion is that a nonstatic member function at a minimum must be as efficient as its
analogous nonmember function

C++设计的一个准则是]]></description><category></category></item><item><title><![CDATA[深入理解计算机系统chapter7 学习笔记]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12260321</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12260321</guid><author>zhanglei0107</author><pubDate>Thu, 03 Oct 2013 23:18:56 +0800</pubDate><description><![CDATA[Local symbols

It is important to realize that local linker symbols are not the same as local
program variables. The symbol table in .symtab does not contain any symbols
that correspond to local n]]></description><category></category></item><item><title><![CDATA[深入理解计算机系统 chapter 9 学习笔记]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12242457</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12242457</guid><author>zhanglei0107</author><pubDate>Wed, 02 Oct 2013 22:55:24 +0800</pubDate><description><![CDATA[在unix系统上，malloc返回的块对齐到8字节(double word)的边界
来自深入理解计算机操作系统


内部碎片是已经分配给用户的，只是分配的块超过用户的有效负荷（payload)


外部碎片是free memory的总大小足够满足分配请求，但没有单块的free memory可以
满足用户请求。即memory没法分配出去




heap block的格式]]></description><category></category></item><item><title><![CDATA[C++虚基类(virtual base class)]]></title><link>https://blog.csdn.net/zhanglei0107/article/details/12234031</link><guid>https://blog.csdn.net/zhanglei0107/article/details/12234031</guid><author>zhanglei0107</author><pubDate>Wed, 02 Oct 2013 12:54:35 +0800</pubDate><description><![CDATA[参考http://www.learncpp.com/cpp-tutorial/118-virtual-base-classes/

#include
using namespace std;
class Base{
public:
	Base()
	{
		cout<<"Base constructor"<<endl;
	}
};
class A:public Base{
public:
	A]]></description><category></category></item></channel></rss>