<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[bahaidong的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/bahaidong</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; bahaidong]]></copyright><item><title><![CDATA[mybatis 查询条件对象中嵌套list报错解决方案]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/82260086</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/82260086</guid><author>bahaidong</author><pubDate>Fri, 31 Aug 2018 17:55:00 +0800</pubDate><description><![CDATA[
public class Page&amp;lt;T&amp;gt; implements Serializable{
 
    private int pageNo = 1;//页码，默认是第一页
    private int pageSize = 20;//每页显示的记录数，默认是20
    private int totalRecord;//总记录数
    private int totalPag...]]></description><category></category></item><item><title><![CDATA[macox 安装 canal 1.0.24]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/80475858</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/80475858</guid><author>bahaidong</author><pubDate>Mon, 28 May 2018 10:13:00 +0800</pubDate><description><![CDATA[一、官网地址：https://github.com/alibaba/canal二、安装 canal server1. 下载canal直接下载访问：https://github.com/alibaba/canal/releases ，会列出所有历史的发布版本包 下载方式，比如以1.0.24版本为例子下载：https://github.com/alibaba/canal/releases/downlo...]]></description><category></category></item><item><title><![CDATA[mac mysql 安装及 my.cnf文件设置]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/80475684</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/80475684</guid><author>bahaidong</author><pubDate>Mon, 28 May 2018 09:48:02 +0800</pubDate><description><![CDATA[安装教程参考官网：https://dev.mysql.com/doc/refman/8.0/en/installing.html1、首先启动mysql服务启动MySQL服务sudo /usr/local/mysql/support-files/mysql.server start停止MySQL服务sudo /usr/local/mysql/support-files/mysql.server st...]]></description><category></category></item><item><title><![CDATA[mac 安装 docker]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/80467584</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/80467584</guid><author>bahaidong</author><pubDate>Sun, 27 May 2018 10:47:31 +0800</pubDate><description><![CDATA[使用 Homebrew 安装macOS 我们可以使用 Homebrew 来安装 Docker。Homebrew 的 Cask 已经支持 Docker for Mac，因此可以很方便的使用 Homebrew Cask 来进行安装：$ brew cask install docker

==&amp;gt; Creating Caskroom at /usr/local/Caskroom
==&amp;gt; We'...]]></description><category></category></item><item><title><![CDATA[macox  安装openresty]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/79816906</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/79816906</guid><author>bahaidong</author><pubDate>Wed, 04 Apr 2018 14:44:43 +0800</pubDate><description><![CDATA[1、下载 https://openresty.org/download/ngx_openresty-1.9.7.1.tar.gz2、安装包管理器  $ /usr/bin/ruby -e &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)&quot;3、安装必要的包$ brew update  $ b...]]></description><category></category></item><item><title><![CDATA[安装Nginx+Lua+OpenResty开发环境配置全过程实例]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/77534629</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/77534629</guid><author>bahaidong</author><pubDate>Thu, 24 Aug 2017 18:01:44 +0800</pubDate><description><![CDATA[安装Nginx+Lua+OpenResty开发环境配置全过程实例

OpenResty由Nginx核心加很多第三方模块组成，默认集成了Lua开发环境，使得Nginx可以作为一个Web Server使用。
借助于Nginx的事件驱动模型和非阻塞IO，可以实现高性能的Web应用程序。
而且OpenResty提供了大量组件如Mysql、Redis、Memcached等等，使在Nginx上开发We]]></description><category></category></item><item><title><![CDATA[eclipse下tomcat中文乱码解决]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/70596822</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/70596822</guid><author>bahaidong</author><pubDate>Mon, 24 Apr 2017 14:05:36 +0800</pubDate><description><![CDATA[1、设置D:\tomcat7\conf\server.xml 文件添加下面红色字体内容
    
               connectionTimeout="20000"
               redirectPort="8443" URIEncoding="UTF-8"/>
    
               connectionTimeout="20000"]]></description><category></category></item><item><title><![CDATA[SpringMvc 遇到的坑,返回中文乱码以及Ajax跨域]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/62042442</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/62042442</guid><author>bahaidong</author><pubDate>Tue, 14 Mar 2017 14:21:02 +0800</pubDate><description><![CDATA[前言: 最近在写一个Java
Web后台时采用了spring+MyBatis+MySQL的方式.记录下遇到的关键问题



接口返回数据相关
使用@ResponseBody后返回NUll
说明:刚把后台运行起来,兴高采烈的测试接口数据,结果无论如何都是返回null,
最终通过各种百度,发现原来是没有引入关键的Jar包.
解决办法: 需要引入jackson的jar包(jackson]]></description><category></category></item><item><title><![CDATA[SpringMVC 解决GET请求时中文乱码的问题]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/62042097</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/62042097</guid><author>bahaidong</author><pubDate>Tue, 14 Mar 2017 14:04:51 +0800</pubDate><description><![CDATA[项目中的web.xml中的编码设置：



filter>
        filter-name>CharacterEncodingfilter-name>
        filter-class>org.springframework.web.filter.CharacterEncodingFilterfilter-class>
        init-param>
       ]]></description><category></category></item><item><title><![CDATA[从Ibatis过度到Mybatis---比较Mybaits较与Ibatis有哪些方面的改进]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/56480467</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/56480467</guid><author>bahaidong</author><pubDate>Wed, 22 Feb 2017 10:41:54 +0800</pubDate><description><![CDATA[随着开发团队转投Google Code旗下，ibatis3.x正式更名为Mybatis。那么mybatis较于ibatis做了哪些方面的突破呢？这里我总结些：(不一定完整，是本人整理总结的)
1.全局文件的配置：
         MyBatis 全局配置文件的各主要元素基本和 iBatis 相同，只是在用法和个别名称上做了调整。元素的意义就不再描述，下面主要讲述针对 iBatis 和 MyB]]></description><category></category></item><item><title><![CDATA[window.print() 去掉页眉页脚及打印链接]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/53581034</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/53581034</guid><author>bahaidong</author><pubDate>Mon, 12 Dec 2016 11:47:35 +0800</pubDate><description><![CDATA[页面中添加样式：

    @page {
      size: auto;  /* auto is the initial value */
      margin: 0mm; /* this affects the margin in the printer settings */
    }

直接调用
  window.print();





如果ie不]]></description><category></category></item><item><title><![CDATA[说说JSON和JSONP，也许你会豁然开朗，含jQuery用例]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/52852725</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/52852725</guid><author>bahaidong</author><pubDate>Tue, 18 Oct 2016 21:06:45 +0800</pubDate><description><![CDATA[前言：
 
说到AJAX就会不可避免的面临两个问题，第一个是AJAX以何种格式来交换数据？第二个是跨域的需求如何解决？这两个问题目前都有不同的解决方案，比如数据可以用自定义字符串或者用XML来描述，跨域可以通过服务器端代理来解决。
但到目前为止最被推崇或者说首选的方案还是用JSON来传数据，靠JSONP来跨域。而这就是本文将要讲述的内容。
 
JSON和JSONP虽然只有一个字母的差别，]]></description><category></category></item><item><title><![CDATA[Mybatis拦截器介绍及分页插件]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/52399376</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/52399376</guid><author>bahaidong</author><pubDate>Thu, 01 Sep 2016 14:26:34 +0800</pubDate><description><![CDATA[Mybatis 拦截器介绍 
1.1 目录

1.2 前言

1.3 Interceptor接口

1.4 注册拦截器

1.5 Mybatis可拦截的方法

1.6 利用拦截器进行分页

       拦截器的一个作用就是我们可以拦截某些方法的调用，我们可以选择在这些被拦截的方法执行前后加上某些逻辑，也可以在执行这些被拦截的方法时执行自己的逻辑而不再执行被拦截的方法。M]]></description><category></category></item><item><title><![CDATA[easyui select选择框模糊查询 以及页面引入多个版本的jquery解决办法]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/50488906</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/50488906</guid><author>bahaidong</author><pubDate>Sat, 09 Jan 2016 18:15:20 +0800</pubDate><description><![CDATA[eaeyui版本1.4.4，下载地址
http://www.jeasyui.com/download/index.php
下拉框模糊查询例子：


    pageEncoding="UTF-8"%>




    
    登录成功
    
    
    
    
    


    
        实现功能及说明：
    
     ]]></description><category></category></item><item><title><![CDATA[java web获取文件路径]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/50380062</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/50380062</guid><author>bahaidong</author><pubDate>Tue, 22 Dec 2015 15:11:20 +0800</pubDate><description><![CDATA[spring 获取项目绝对路径
request.getServletContext().getRealPath("/");

struts 获取项目绝对路径
ServletActionContext.getServletContext().getRealPath("/");]]></description><category></category></item><item><title><![CDATA[java 字符串 与 unicode 之间互相转换]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/50164005</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/50164005</guid><author>bahaidong</author><pubDate>Thu, 03 Dec 2015 17:40:02 +0800</pubDate><description><![CDATA[/**
* unicode 转字符串
*/
public static String unicode2String(String unicode) {
 
   StringBuffer string = new StringBuffer();
 
   String[] hex = unicode.split("\\\\u");
 
   for (int i = 1; i ]]></description><category></category></item><item><title><![CDATA[Eclipse闪退/打不开/无法启动/一闪而过打解决方法]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/50055203</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/50055203</guid><author>bahaidong</author><pubDate>Thu, 26 Nov 2015 14:09:07 +0800</pubDate><description><![CDATA[解决方式：
1.通过在命令行中输入“where java”，找到除jdk目录下的所有java相关程序，直接删掉（一般会在C:\WINDOWS\system32下）
2.内存不足，打开Eclipse目录下的eclipse.ini，把里面的-Xmx512m改成-Xmx256m
3.检查环境变量，path变量中将jdk路径放在最前边（开头的“.;”直接后边）
4.检查环境变量，path变量中将j]]></description><category></category></item><item><title><![CDATA[activemq 入门]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/48206845</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/48206845</guid><author>bahaidong</author><pubDate>Fri, 04 Sep 2015 09:50:25 +0800</pubDate><description><![CDATA[一、windows下运行

1、下载
    
http://activemq.apache.org/activemq-5100-release.html

2、下载.zip格式的文件
    解压缩后根据电脑位数，运行相应位数下面的.bat文件
    例：我的电脑为64位放在d盘；运行为：D:\activemq510\bin\win64\activemq.bat
3、启动成功]]></description><category></category></item><item><title><![CDATA[Log4j.properties配置详解]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/48133401</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/48133401</guid><author>bahaidong</author><pubDate>Mon, 31 Aug 2015 14:22:47 +0800</pubDate><description><![CDATA[一、Log4j简介

Log4j有三个主要的组件：Loggers(记录器)，Appenders (输出源)和Layouts(布局)。这里可简单理解为日志类别，日志要输出的地方和日志以何种形式输出。综合使用这三个组件可以轻松地记录信息的类型和级别，并可以在运行时控制日志输出的样式和位置。

1、Loggers

Loggers组件在此系统中被分为五个级别：DEBUG、INFO、WARN、]]></description><category></category></item><item><title><![CDATA[eclipse 创建 maven web 项目]]></title><link>https://blog.youkuaiyun.com/bahaidong/article/details/47705723</link><guid>https://blog.youkuaiyun.com/bahaidong/article/details/47705723</guid><author>bahaidong</author><pubDate>Sun, 16 Aug 2015 20:25:58 +0800</pubDate><description><![CDATA[Eclipse+Maven创建webapp项目
1、开启eclipse，右键new——》other，如下图找到maven project



2、选择maven project，显示创建maven项目的窗口，勾选如图所示，Create a simple project





3、输入maven项目的基本信息，如下图所示：





4、选择项目，右键选择Pr]]></description><category></category></item></channel></rss>