0%

mybatis使用过程中问题集 多个参数时需要参数绑定 * Dao接口进行参数绑定 异常信息: HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'acceptPersonId' not found. Available parameters are [1, 0, param1, param2] 解决方案: DAO层中传递参数时加@Param("accept
阅读全文 »

脚本文件 * Python脚本 http://ogy57hyu6.bkt.clouddn.com/discuz.py.txt 用户信息源 用户信息文件按顺序存储用户信息(用户名,密码,邮箱,用户组,是否通知,addsubmit)。可以按如下两种方式组织(以以下格式复制到txt文本中即可): * 包含全部信息 usr1,123456,usr1@usr.com,10,0,addsubmit usr2,123456,usr2@usr.com,10,0,addsubmit usr3,123456,usr3@usr.com,10,0,addsubmit usr4,123456,usr4@usr.com,10,0,addsubmit * 也可以只需要部分信息 usr1,12
阅读全文 »

条件准备 * 部署Discuz 参见文章:windows下discuz论坛 Linux下原理相同 * Java项目 普通Javaweb项目即可 * Discuz用户中心访问程序包 云盘地址 链接:https://pan.baidu.com/s/1dFtW97z 密码:mkay 下载解压,将里面的 com.fivestars.interfaces.bbs包 和 config.properties 和 Jsp_demo.jsp 和 web.xml 拷贝出来 备用。 Java项目与Discuz整合单点登录 将配置和工具类放到Java项目 * 清单 1.discuz工具包 2.web.xml添加discuz工
阅读全文 »

工具准备 * discuz产品包 下载地址(utf-8版) http://www.comsenz.com/downloads/install/discuzx * Windows下PHP集成环境XAMPP http://rj.baidu.com/soft/detail/25759.html?ald * MySQL 链接:https://pan.baidu.com/s/1kVcjybd 密码:eura * 163邮箱 注册163邮箱,开启SMTP服务。 安装部署 * 部署 安装完mysql和XAMPP后,将下载好的Discuz_X3.2_SC_UTF8.zip解压,将解压后的upload文件夹改名为bbs或其它想要的命名,并拷贝到
阅读全文 »

Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer tonginx.org. Commercial support is available atnginx.com. Thank you for using nginx.
阅读全文 »

An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this resource then you should check the error log for details. Faithfully yours, nginx.
阅读全文 »

负载均衡 在http代码块中添加 upstream upstream_server { ##java服务地址 server 192.168.1.191:7001; server 192.168.1.192:7001; } location / { root html; index index.html index.htm; ##反向代理(java服务地址) proxy_pass http://upstream_server; proxy_set_header Host $host; proxy_set_header Connection close; proxy_connect_timeout 100ms; # 代理机器连接
阅读全文 »

centos7 64位下安装nginx * 软件准备 安装Nginx需要先安装下列软件包: GCC PCRE zlib openssl GCC和PCRE之前在centos7中使用源码安装apache2.4的时候已经安装过,这里用再安装; 这里需要下载安装zlib后再安装nginx zlib官网下载地址: http://www.zlib.net/ openssl官网下载地址 https://www.openssl.org/source/ nginx官网下载地址: http://nginx.org/en/download.html * 安装 * 将zlib、Open
阅读全文 »

launchpad显示数量修改 调整Launchpad每列显示的数量: defaults write com.apple.dock springboard-rows -int 8 调整Launchpad每行显示的数量: defaults write com.apple.dock springboard-columns -int 7 重置Dock和Launchpad: defaults write com.apple.dock ResetLaunchPad -bool TRUE;killall Dock 恢复默认: defaults write com.apple.dock springboard-rows Default defaults write com.apple.dock springboard-columns Default killall Dock alf
阅读全文 »

Python基础 * 脚本第一行 #!/usr/bin/env python与#!/usr/bin/python的区别 脚本语言的第一行,目的就是指出,你想要你的这个文件中的代码用什么可执行程序去运行它。 #!/usr/bin/python是告诉操作系统执行这个脚本的时候,调用/usr/bin下的python解释器; #!/usr/bin/env python这种用法是为了防止操作系统用户没有将python装在默认的/usr/bin路径里。 当系统看到这一行的时候,首先会到env设置里查找python的安装路径,再调用对应路径下的解释器程序完成操作。 #!/usr/bin/python相当于写死了python路径; #!/usr/bin/env python会去环境设置寻找python目录,推
阅读全文 »