`
digfog
  • 浏览: 43032 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
http://stackoverflow.com/questions/12544479/spring-mvc-type-conversion-propertyeditor-or-converter PropertyEditor Converter是spring 使用的两种对象转换方式 public class CategoryEditor extends PropertyEditorSupport { // Converts a String to a Category (when submitting form) @Override public void ...
    Attaching the validator to the form:     $('#your-form-id').validate();     When the Save button of your modal form is clicked, submit the form (the validator will be triggered):     buttons: {       "Save": function() {         $('#your-form-id').submit();       },     Move the su ...

restTemplate乱码

//不起作用,按照网上的修改httpmessageConverter源码,解决乱码 //>jar -uvf spring-web-3.2.0.RELEASE.jar org\springframework\http\converter\StringHttpMessageConverter.class public void insert() throws IOException { MultiValueMap<String, Object> formData = new LinkedMultiValueMap<String, Object> ...
set nocompatible source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin language messages zh_CN.utf-8 set encoding=utf-8 set fileencodings=ucs-bom,utf-8,GBK,gb18030,cp936 set softtabstop=4 set shiftwidth=4 set ai syn on source $VIMRUNTIME/delmenu.vim so ...
ubuntu 12.04 下测试 可能缺少的库 libaio1 tar xvf Downloads/mysql-cluster-gpl-7.1.3-linux-x86_64-glibc23.tar.gz ln -s mysql-cluster-gpl-7.1.3-linux-x86_64-glibc23 /usr/mysqlc mkdir my_cluster my_cluster/ndb_data my_cluster/conf 1.mgm的配置 mgm配置文件 conf/config.ini: [ndb_mgmd] hostname=192.168.1.30 d ...
ubuntu不支持oracle,网上教程太复杂,总是出错.后来找到个能装XE的就装了. Oracle Database 10g Express Edition requires 1006 MB of swap space echo "deb http://oss.oracle.com/debian/ unstable main non-free" >> /etc/apt/sources.list apt-get update apt-get install oracle-xe-client apt-get install oracle-xe sh ...
1.基本语法:call sp_name() create procedure 存储过程名字()   (   [in|out|inout] 参数 datatype   )   begin   MySQL 语句;   end; MySQL 存储过程中的变量,不需要在变量名字前加“@”,虽然 MySQL 客户端用户变量要加个“@”。 drop procedure sp_name// 1.区块定义,常用 begin ...... end; 也可以给区块起别名,如: lable:begin ........... end lable; 可以用leave lable;跳出区块,执行区块以后 ...
aptitude apt-get /etc/hosts apt-get -f install multiget pysdm自动挂载 取消静音 >pacmd >>>set-sink-mute 0 0 不要退出 vim文件乱码 set encoding=utf-8 set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1 tty中文 zhcon zhcon --utf8 不行再试试zhcon --utf8 --drv=vga 解压win zip乱码 unzip -O GB18030 a. ...
使用了bat启动eclipse,并指定了vm,去掉就好了

android初使用

<intent-filter> <action android:name="qq.aa.TT" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> intent filter 限制哪些intent可以访问此activity(能接收什么类型的intent). action(0个或多个),匹配其中一个即可. ...
下载的解压版的android-sdk,通过里边的软件选择需要安装的工具。 arm eabi需要安装 Cannot complete the install because of a conflicting dependency.   Software being installed: Android Development Tools 16.0.0.v201112072138-234950 (com.android.ide.eclipse.adt.feature.group 16.0.0.v201112072138-234950)   Software currently installed: ...
//全选反选 var fixGridSelectAll = function(grid) {var sm = grid.getSelectionModel();var store = grid.getStore();sm.addListener("selectionchange", function(thiz) {var hd = grid.getEl().select('div.x-grid3-hd-checker').parent().first();if(!hd) {return;} if (store.getCount()>0 && sto ...
一个简单的bat,文件选择以此bat打开的话会自动在文件名后面加_或者去掉_ 如果选择了默认以此打开以后只要双击就行,对tomcat的服务布署xml文件与取消很方便 @echo off set str=%1 set tmp=%~nx1 set "tmp=%tmp:~-1%" set newName=%~nx1 if not "%tmp%"=="_" ( set newName="%newName%_" ) else ( set newName="%newName:~0,-1%&qu ...
在efckeditor中添加: onDestroy : function(){ delete FCKeditorAPI.Instances[this.name]; window.FCKeditorAPI = null; delete window.FCKeditorAPI; Ext.Container.superclass.onDestroy.call(this); },
Session持久化 server.xml <Context docBase="D:/workspace/test/WebRoot" path="/test" reloadable="false"> <Manager className="org.apache.catalina.session.PersistentManager" debug="0" saveOnRestart="true" maxActiveSessions=" ...
Global site tag (gtag.js) - Google Analytics