中国广东省深圳市龙华新区民治街道溪山美地
518131
+86 13113668890
版权声明
转载请与作者联系,转载时请务必标明文章原始出处和作者信息及本声明。
文档出处:
<a href="http://netkiller.github.io/" target="_top">http://netkiller.github.io</a>
<a href="http://netkiller.sourceforge.net/" target="_top">http://netkiller.sourceforge.net</a>
群:128659835 请注明“读者”
2015-11-25
摘要
我的系列文档
编程语言
<a href="http://www.netkiller.cn/architect/index.html" target="_top">netkiller architect 手札</a>
<a href="http://www.netkiller.cn/developer/index.html" target="_top">netkiller developer 手札</a>
<a href="http://www.netkiller.cn/php/index.html" target="_top">netkiller php 手札</a>
<a href="http://www.netkiller.cn/python/index.html" target="_top">netkiller python 手札</a>
<a href="http://www.netkiller.cn/testing/index.html" target="_top">netkiller testing 手札</a>
<a href="http://www.netkiller.cn/cryptography/index.html" target="_top">netkiller cryptography 手札</a>
<a href="http://www.netkiller.cn/perl/index.html" target="_top">netkiller perl 手札</a>
<a href="http://www.netkiller.cn/docbook/index.html" target="_top">netkiller docbook 手札</a>
<a href="http://www.netkiller.cn/project/index.html" target="_top">netkiller project 手札</a>
<a href="http://www.netkiller.cn/java/index.html" target="_top">netkiller java 手札</a>
<a href="http://www.netkiller.cn/devops/index.html" target="_top">netkiller devops 手札</a>
操作系统
<a href="http://www.netkiller.cn/linux/index.html" target="_top">netkiller linux 手札</a>
<a href="http://www.netkiller.cn/debian/index.html" target="_top">netkiller debian 手札</a>
<a href="http://www.netkiller.cn/centos/index.html" target="_top">netkiller centos 手札</a>
<a href="http://www.netkiller.cn/freebsd/index.html" target="_top">netkiller freebsd 手札</a>
<a href="http://www.netkiller.cn/shell/index.html" target="_top">netkiller shell 手札</a>
<a href="http://www.netkiller.cn/security/index.html" target="_top">netkiller security 手札</a>
<a href="http://www.netkiller.cn/www/index.html" target="_top">netkiller web 手札</a>
<a href="http://www.netkiller.cn/monitoring/index.html" target="_top">netkiller monitoring 手札</a>
<a href="http://www.netkiller.cn/storage/index.html" target="_top">netkiller storage 手札</a>
<a href="http://www.netkiller.cn/mail/index.html" target="_top">netkiller mail 手札</a>
<a href="http://www.netkiller.cn/multimedia/index.html" target="_top">netkiller multimedia 手札</a>
<a href="http://lib.csdn.net/base/14" target="_blank">数据库</a>
<a href="http://www.netkiller.cn/database/index.html" target="_top">netkiller database 手札</a>
<a href="http://www.netkiller.cn/postgresql/index.html" target="_top">netkiller postgresql 手札</a>
<a href="http://www.netkiller.cn/mysql/index.html" target="_top">netkiller mysql 手札</a>
<a href="http://www.netkiller.cn/nosql/index.html" target="_top">netkiller nosql 手札</a>
<a href="http://www.netkiller.cn/ldap/index.html" target="_top">netkiller ldap 手札</a>
网络设备及其他
<a href="http://www.netkiller.cn/network/index.html" target="_top">netkiller network 手札</a>
<a href="http://www.netkiller.cn/cisco/index.html" target="_top">netkiller cisco ios 手札</a>
<a href="http://www.netkiller.cn/h3c/index.html" target="_top">netkiller h3c 手札</a>
<a href="http://www.netkiller.cn/radio/index.html" target="_top">netkiller amateur radio 手札</a>
目录
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776266272">1. install</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776206080">1.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776202944">1.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#initialization">2. project initialization</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776198432">2.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776193808">2.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#controller">3. controller</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776187232">3.1. welcome</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776186432">3.1.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776184736">3.1.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776182800">3.2. pathinfo</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776180832">3.2.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776179200">3.2.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776188416">3.3. http get</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776176144">3.3.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776174464">3.3.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#http.post">3.4. http post</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776169920">3.4.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776168480">3.4.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#view">4. view</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776164400">4.1. variable</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776163664">4.1.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776161920">4.1.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776160080">4.2. array</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776159344">4.2.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776157600">4.2.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776155680">4.3. map or hashmap</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776154912">4.3.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776153152">4.3.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776151200">4.4. from</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776150432">4.4.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776148384">4.4.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#model">5. model</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776144704">5.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776142368">5.2. mybatis</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#session">6. session</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776132240">6.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776129232">6.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#cache">7. cache</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776123408">7.1. redis</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776122544">7.1.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776121040">7.1.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776116224">7.2. model + cache</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776115584">7.2.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776113920">7.2.2. mybatis</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776109248">7.3. phalcon vs ehcache</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776108544">7.3.1.</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776107264">7.3.2.</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#json">8. json data</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776104688">8.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776099488">8.2. spring</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#queue">9. message queue</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776092384">9.1. phalcon</a>
<a href="http://www.netkiller.cn/journal/phalcon.spring.html#idm45229776091008">9.2. spring</a>
you need to install with compiler, make tools.
you just only create a file as pom.xml, the maven will be fetch them.
webcontent\web-inf
netkiller-servlet.xml
http://www.netkiller.cn/news/list/100.html
http://www.netkiller.cn/news/detail/100/1000.html
http://www.netkiller.cn/member/[email protected]
如果参数很多写起来就非常辛苦
模型定义
在控制器重调用查询数据
mybatis.xml
cn/netkiller/mapping/usermapping.xml
数据类型映射
测试程序
传统方式
servlet 传统方式
pom.xml
configure redistemplate....
testing
mybatis redis cache adapter http://mybatis.github.io/redis-cache
encode
output
decode
输出
json 编码
json 解码