01 2014 档案

摘要:@EnableWebMvcReferenceThe above registers aRequestMappingHandlerMapping, aRequestMappingHandlerAdapter, and anExceptionHandlerExceptionResolver(among others) in support of processing requests with annotated controller methods using annotations such as@RequestMapping,@ExceptionHandler, and others.It 阅读全文
posted @ 2014-01-23 13:56 cozybz
摘要:先引用部分 Servlet3.0 Specification 原文match ruleThe path used for mapping to a servlet is the request URL from the request object minus the context path and the path parameters. The URL path mapping rules below are used in order.The first successful match is used with no further matches attempted:The con 阅读全文
posted @ 2014-01-23 12:24 cozybz 阅读(721) 评论(0) 推荐(0)
摘要:@Resource注解在字段上,这样就不用写setter方法了 阅读全文
posted @ 2014-01-21 13:41 cozybz
摘要:Rightclick Project->Maven->Disable->Enable 阅读全文
posted @ 2014-01-21 09:30 cozybz
摘要:~/.bashrc 该文件包含专用于你的bash shell的bash信息,当登录时以及每次打开新的shell时,该文件被读取.~/.bash_profile:每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件。使用ssh登录时,只执行bashrc,不会执行bash_profile。 阅读全文
posted @ 2014-01-20 19:40 cozybz
摘要:http://download.eclipse.org/eclipse/downloads/Download the "PlatformRuntimeBinary" (http://download.eclipse.org/eclipse/downloads/drops4/R-4.3.1-201309111000/) 阅读全文
posted @ 2014-01-20 18:37 cozybz
摘要:#Create a new file in your home directory called .gtkrc-eclipse # call eclipse with this command:# env GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:/home/USER/.gtkrc-eclipse '/path_to_eclipse/eclipse' # In your Eclipse directory find the file 'plugins/org.eclipse.platform_4.2 阅读全文
posted @ 2014-01-20 18:18 cozybz
摘要:Chromium:~/.config/chromium/Default/User StyleSheets/Custom.csshtml, body {background-color: #C7EDCC!important;}Eclipse:Preference->TextEditor->#CCE8CF 阅读全文
posted @ 2014-01-20 17:21 cozybz
摘要:删除known_hosts : ssh-keygen -R hostname复制publick key到服务器 :ssh-copy-id user@hostname.example.com复制文件 :scp -p port yourFile theRemotehost:/path/to/folder指定 key :-iidentity_file指定 用户 : user@host指定 port : -p权限 :.ssh 700 public key 644(600) private key 600 阅读全文
posted @ 2014-01-18 17:46 cozybz
摘要:SELECT DISTINCT 列 FROM 表 关键词 DISTINCT 用于返回不同的值SELECT 列 FROM 表 LIMIT 数量SELECT 列1, 列2 FROM Orders ORDER BY 列1 DESC,列2 ASCINSERT INTO 表 (列1, 列2,...) VALUES (值1, 值2,...)UPDATE 表 SET 列1=值1 , 列2=值2 WHERE 条件DELETE FROM 表 WHERE 条件条件:like(通配符[],[^],%,_),in,between 阅读全文
posted @ 2014-01-17 17:43 cozybz
摘要:创建GRANT ALL PRIVILEGES ON *.* TO '用户名'@'域' IDENTIFIED BY '密码' WITH GRANT OPTION;CREATEUSER '用户名'@'域'IDENTIFIEDBY 密码;授权、更改GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON bankaccount.* TO '用户名'@'域' IDENTIFIED BY '密码';删除DROP USER 用户名生效FLU 阅读全文
posted @ 2014-01-07 19:11 cozybz
摘要:建数据库:create database 库名character set utf8 collate utf8_general_ci;建表:create table 表名 (...) default charset utf8;连接:jdbc:mysql://localhost:3306/db?useUnicode=true&characterEncoding=utf8;[mysqld]character-set-server=utf8 collation-server=utf8_unicode_ci 阅读全文
posted @ 2014-01-07 19:01 cozybz
摘要:添加字段:alter table 表名 add 字段名 [字段类型等];修改字段alter table 表名 change 字段名称 新字段名称 [字段类型等];alter table 表名 modify 字段名称 [字段类型等];删除字段alter table 表名 drop 字段名; 阅读全文
posted @ 2014-01-07 18:37 cozybz