随笔分类 -  spring

摘要:jsp: <form class='uk-form' action="savelead" method="post" enctype="multipart/form-data" onsubmit="return savelead();"> </form> 传递一个附件 action: @Reques 阅读全文

posted @ 2016-09-18 18:00 sui008 阅读(190) 评论(0) 推荐(0)

摘要:复制多份,保证有效的配置文件,属性时true就行 <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list> <val 阅读全文

posted @ 2016-09-09 10:33 sui008 阅读(516) 评论(0) 推荐(0)

摘要:springmvc 配置好会自动转换json格式,只要配置他转格式之前,在转次String类型就好 阅读全文

posted @ 2016-07-14 10:07 sui008 阅读(2037) 评论(0) 推荐(0)

摘要:第一种:获取根目录下的文件名 ApplicationContext ac = new ClassPathXmlApplicationContext("../mvc-dispatcher-servlet.xml"); 第二种 ApplicationContext ac = new FileSystem 阅读全文

posted @ 2016-06-02 20:28 sui008 阅读(174) 评论(0) 推荐(0)

导航