上一页 1 2 3 4 5 6 ··· 26 下一页
摘要: 原文链接:http://www.javaarch.net/jiagoushi/704.htmOracle Skip Locked Oracle 11g引入skip locked。 Skip Locked 是在query select语句中跳过已经被其他正在执行的query select语句锁住的行,只执行能够获得锁的行。 select for update如何查询大数量,那么其他session同时执行的select语句可能会等待锁超时而报下面这个错 ORA-30006: resource busy; acquire with WAIT timeout expired 如果是不超时的... 阅读全文
posted @ 2013-06-02 19:29 zhwj184 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.javaarch.net/jiagoushi/703.htm各个数据库获取随机列的语法 MySQL SELECT column FROM table ORDER BY RAND() LIMIT 10 Oracle SELECT column FROM( SELECT column FROM table ORDER BY dbms_random.value ) WHERE rownum <= 10 PostgreSQL SELECT column FROM table ORDER BY RANDOM() LIMIT 10 SQL Serve... 阅读全文
posted @ 2013-06-02 17:35 zhwj184 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.javaarch.net/jiagoushi/701.htm使用Mysqldump 备份数据库 1.备份一个数据库 mysqldump --user [user name] --password=[password] [database name] > [dump file] or mysqldump -u[user name] -p[password] [database name] > [dump file] 示例: mysqldump --user root --password=myrootpassword db_test >... 阅读全文
posted @ 2013-06-02 17:09 zhwj184 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.javaarch.net/jiagoushi/700.htmMySQL 全文搜索支持 从MySQL 4.0以上 myisam引擎就支持了full text search 全文搜索,在一般的小网站或者blog上可以使用这个特性支持搜索。 那么怎么使用了,简单看看: 1.创建一个表,指定支持fulltext的列 CREATE TABLE articles ( id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY, title VARCHAR(200), body TEXT, FULLTEXT ... 阅读全文
posted @ 2013-06-02 16:50 zhwj184 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.javaarch.net/jiagoushi/698.htmSpring rest对etag支持 etag(entity tag)是http响应头中用来判断对应响应结果是否修改。可以使用hash算法来计算etag的值。 比如:第一次访问 curl -H "Accept: application/json" -i http://localhost:8080/rest-sec/api/resources/1 响应为: HTTP/1.1 200 OK ETag: "f88dd058fe004909615a64f01be66a7" 阅读全文
posted @ 2013-06-02 16:15 zhwj184 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.javaarch.net/jiagoushi/697.htmSpring Security Logout spring logout配置: <http> ... <logout/> </http> Logout url:jsp页面 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <html> <head></head> <body> <a hr 阅读全文
posted @ 2013-06-02 16:14 zhwj184 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.javaarch.net/jiagoushi/696.htmSpring Security Basic Authentication spring security 配置 <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins 阅读全文
posted @ 2013-06-02 16:13 zhwj184 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.javaarch.net/jiagoushi/695.htmSpring Security Form Login web.xml配置 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://j 阅读全文
posted @ 2013-06-02 16:11 zhwj184 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.javaarch.net/jiagoushi/694.htmspring3 的restful API RequestMapping介绍 在spring mvc中 @RequestMapping是把web请求映射到controller的方法上。 1.RequestMapping Basic Example 将http请求映射到controller方法的最直接方式 1.1 @RequestMapping by Path @RequestMapping(value = "/foos") @ResponseBody public String get 阅读全文
posted @ 2013-06-02 14:54 zhwj184 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.javaarch.net/jiagoushi/681.htm如何快速是DNS修改生效OSX, Chrome, and DNS在开发中,经常会给域名绑定一些ip,然后又需要经常切换,那么在linux下如何快速让DNS修改声息呢?1.先用dig命令查询域名对应的ip是否已经生效shell$ dig grepalex.com;; ANSWER SECTION:grepalex.com.3600INA66.216.100.1402.如何是chrome,则可以在地址栏上输入下面命令,让浏览器DNS缓存失效chrome://net-internals/#dns3.虽然浏览器 阅读全文
posted @ 2013-06-02 12:19 zhwj184 阅读(293) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 26 下一页