自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 收藏
  • 关注

转载 Solr 6.6 --- 基础入门攻略。

#一、版本介绍tomcat 9JDK 1.8solr 6.6#二、流程介绍官网下载 solr 6.6 然后解压到文件夹。将 server/server-webapp 下的 webapp 复制到 tomcat 的 webapp 包下并改名为 solr打开 在t...

2017-07-28 09:08:00 161

转载 IKAnalyzer -- lucene6.6适配

前言在中文分词器中, IKAnalyzer 做的是相对不错的,有着细度分割和智能使用两个模式 。但是,这个版本因为太陈旧,作者不再维护,(项目估计是。。。),所以与现在的Lucene 6.6 版本差距有些大。所以,我就根据网上各位大神的文章,加上自己对 API 与源码的阅读,稍微的进行了改...

2017-07-21 17:35:00 326

转载 lucene6.6 学习心得

##前言学习的资料是 lucene 4.10 版本,比较沉旧,查阅最新的 lucene 版本 6.6 的官方文档,整理出以下几个使用中的不同。从浅入深依次为 (注:不是根据版本先后)IndexWriterConfig 的构造方法Directory 的生成方法 FSDirecto...

2017-07-21 13:27:00 182

转载 struts2 --- 2.5版本 的正则表达式及通配符的使用

#前言今天在写代码的时候,使用了struts2 - 2.5 版本,想要使用通配符时,一直出现错误。如下图。配置如下。按原先总结的原因:首先检查Action名称是否写错,如果是名称错了,那么没办法,出这种错浪费时间也是应该的。检查配置文件是否写错,struts有一个默认...

2017-07-19 18:47:00 148

转载 struts2 与 springmvc 中参数传递问题

#前言众所周知,springmvc 与 struts2 是两个非常优秀的 MVC 框架。注:应该是属于 controller并且均在内部集成了 参数传递 的功能。不过在使用中,我发现 springmvc 与 struts2 的参数传递 功能在 从JSP传回 ** action **时有...

2017-07-19 18:18:00 178

转载 <input type="img"> 与 <img> 标签的区别

最近一直在根据一些项目,学习如何编写 web 程序。其中,看到一段代码的时候,很是疑惑。 <form action="${pageContext.request.contextPath}/templateAction_add.action" method="post" e...

2017-07-18 20:31:00 337

转载 spring --- 整合c3p0 连接池时的问题

第一个问题 ```java.sql.SQLException: Access denied for user 'Administrator'@'localhost' (using password: YES)``` 出现这个问题肯定是 配置 没有配置正确。 ...

2017-07-17 20:02:00 128

转载 idea --- xml文件无法编译的解决方法

在eclipse中,把资源文件放在src文件夹下,是可以找到的;但是在idea中,直接把资源文件放在src文件夹下,如果不进行设置,是不能被找到的。1.将所有资源文件放在resources文件夹下这样做很方便,比较容易想到,但是层次性就很差了,比如mybatis的映射配置文件map...

2017-07-17 19:46:00 1118

转载 Log4j-1 的配置

###一、log4j.properties 的使用详解输出级别的种类ERROR、WARN、INFO、DEBUGERROR 为严重错误 主要是程序的错误WARN 为一般警告,比如session丢失INFO 为一般要显示的信息,比如登录登出DEBUG 为程序的调试信息配置日志...

2017-07-13 14:15:00 167

转载 LintCode --- Set Matrix Zeroes

###Question:Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.Examples:Given matrix[ [1,2], [0...

2017-07-11 22:36:00 78

转载 idea使用 maven 内部 集成 JUnit5

idea 本身可以集成 JUnit4 但是对JUnit5的集成不好,在 maven 中 默认 部署会出现 NoSuchMethodError 问题 在网上找了很多帖子,没有找到。 于是从官网的github中 根据错误一点一点的摸索,最后找出的适配方案 pom.xml中代码如下 ...

2017-07-11 22:24:00 761

转载 lintCode --- Combinations(组合)

###题目:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.给你两个整数 n 和 k ,从 1 -- n 中返回所有可能的长度为 k 的组合Example:...

2017-06-25 22:50:00 109

转载 lintCode --- Search a 2D Matrix II (探索二维矩阵)

###题目要求English:Write an efficient algorithm that searches for a value in an m x n matrix, return the occurrence of it.This matrix has the fol...

2017-06-24 22:35:00 85

转载 lintCode --- Count 1 in Binary

###题目要求:Count how many 1 in binary representation of a 32-bit integer.中文翻译:计算在一个 32 位的整数的二进制表式中有多少个 1.ExampleGiven 32, return 1Given 5, retu...

2017-06-21 23:10:00 84

转载 lintCode --- Binary Representation

###题目要求:英文:Given a (decimal - e.g. 3.72) number that is passed in as a string, return the binary representation that is passed in as a string. I...

2017-06-20 22:51:00 104

转载 lintcode --- Two Strings Are Anagrams

题目要求Write a method anagram(s,t) to decide if two strings are anagrams or not.Clarification :What is Anagram?Two strings are anagram if they ...

2017-06-17 23:54:00 127

转载 lintCode --- Maximum Gap

###题目要求Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Return 0 if the array contains ...

2017-06-17 00:54:00 112

转载 lintCode --- Minimum Depth of Binary Tree

###Qusetion:Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node do...

2017-06-10 22:26:00 96

转载 LintCode --- Two Sum - Input array is sorted

The question provided:Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific...

2017-06-06 23:40:00 85

转载 将vim打造成支持markdown操作的编辑器

###First step --- vim-markdown####Introduction:这是一个将你的markdown文件可以很自动高亮的插件,随下载随使用简单方便。If you use Vundle [2], add the following line to your...

2017-06-06 23:07:00 443

转载 LintCode---GreyCode

public class Solution { public ArrayList<Integer> grayCode(int n) { ArrayList<Integer> result = new ArrayList<Integer&gt...

2017-06-04 21:45:00 73

转载 LintCode---Sliding Window Median

题目要求 :Given an array of n integer, and a moving window(size k), move the window at each iteration from the start of the array, find the median of...

2017-06-04 21:43:00 105

转载 DAO设计模式之数据层的构造

DAO设计模式之数据层的构造 1.0 框架图 1.1需求分析 使用雇员数据的添加,但是需要保证被添加的雇员编号不会重复; 实现雇员数据的修改操作 实现多个雇员数据的删除操作 可以查询所有雇员的信息 可以实现数据的分布显示,同时又可...

2017-06-04 21:37:00 79

转载 JavaWeb基础中的三种数据封装方法

#JSP中的封装 public class User(){ private String username; private String password; public void setUsername(){ } public void getUsername(){...

2017-06-04 21:31:00 653

转载 Viming

折叠的方式:vim 提供 6中折叠方式manual 手工定义折叠indent 更多的缩进表示更高级别的折叠expr 用表达式来定义折叠syntax 用语法高亮来定义折叠diff ...

2017-06-04 21:28:00 148

转载 在使用java io流读取文件时的乱码问题

public void init() throws ServletException { // 初始化阶段,读取new_words.txt // web工程中读取 文件,必须使用绝对磁盘路径 String path = getServletContext().getRealPat...

2017-05-20 20:02:00 134

转载 Jquery中的一部分方法在新版本不适用的问题。

今天在写代码的时候,用到Jquery的toggle()方法,但是当我加载网页的时候,发现这个方法被直接使用,并没有像以前一样,模拟鼠标的点击, 因此,我查阅资料后发现,在Jquery1.9版本后,一部分方法已经被放弃了, 如果想要继续使用,需要下载Jquery-migarate工具包。 ...

2017-05-17 16:31:00 156

转载 逆波兰表达式算法分析。

中缀表达式到后缀表达式的转换 例:1+2*3*(3+5) ———— 23*35+*1+ 逆波兰表达式算法: 网上大部分都是写通过两个栈的入栈与出栈进行操作,但是其中有一个是要以先入先出的顺序操作栈,不符合正常的JAVA的认知,因此改为操作数队列与栈,其实本质相同。 一、 将中...

2017-04-25 21:15:00 149

转载 汉诺塔算法分析

汉诺塔(又称河内塔)问题是源于印度一个古老传说的益智玩具。大梵天创造世界的时候做了三根金刚石柱子,在一根柱子上从下往上按照大小顺序摞着64片黄金圆盘。大梵天命令婆罗门把圆盘从下面开始按大小顺序重新摆放在另一根柱子上。并且规定,在小圆盘上不能放大圆盘,在三根柱子之间一次只能移动一个圆盘。 后来,...

2017-04-25 19:49:00 388

转载 Intellij IDEA 进行JSP 操作时,出现的HTTP 500错误。

Intellij IDEA 进行JSP 操作时 <jsp:useBean id="tax" class="TaxRate"/><jsp:setProperty name="tax" property="product" value="1234"/> 发生的HTTP...

2017-04-23 13:30:00 2370

转载 DAO设计模式之数据层的构造

DAO设计模式之数据层的构造 3.1需求分析 使用雇员数据的添加,但是需要保证被添加的雇员编号不会重复; 实现雇员数据的修改操作 实现多个雇员数据的删除操作 可以查询所有雇员的信息 可以实现数据的分布显示,同时又可以返回所有的雇员数量。 ...

2017-04-22 21:14:00 125

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除