maven项目整合redis


引入依赖

<dependency>
  <groupId>redis.clients</groupId>
  <artifactId>jedis</artifactId>
  <version>2.6.0</version>
</dependency>

<dependency>
  <groupId>org.springframework.session</groupId>
  <artifactId>spring-session-data-redis</artifactId>
  <version>1.2.0.RELEASE</version>
</dependency>

阅读全文 »


centos7下RPM安装mysql5.7


查看是否有安装mysql

 rpm -qa|grep -i mysql

如有使用yum命令卸载

yum -y remove mysql版本

阅读全文 »


dubbo注册zookeeper问题


provider配置文件

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:dubbo="http://code.alibabatech.com/schema/dubbo"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
	http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd">

阅读全文 »


springMVC配置


springMVC配置

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http://www.springframework.org/schema/aop"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
	http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
	http://www.springframework.org/schema/mvc
	http://www.springframework.org/schema/mvc/spring-mvc.xsd">

阅读全文 »


Jekyll站内搜索


使用simply-jekyll-serch做站内搜索

  • 合适位置放搜索框,id为search-query
  • 在项目跟目录放一个search.json文件,内容如下


    layout: null

    [
    {% for post in site.posts %}
    {
    “title”: “{{ post.title | escape }}”,
    “category” : “{{ post.category }}”,
    “tags” : “{{ post.tags | join: ‘, ‘ }}”,
    “url” : “{{ site.baseurl }}{{ post.url }}”,
    “date” : “{{ post.date }}”
    } {% unless forloop.last %},{% endunless %}
    {% endfor %}
    ]

  • 引入simple-jekyll-search.min.js

  • 合适位置放一个id为results的ul

阅读全文 »


IDEA新建聚合工程


创建工程,删掉src

File==>new==>project==>maven==>跳过模板,创建工程

阅读全文 »