09 2017 档案
javascript
摘要://加载顺序 //针对js的顺序 1,head引入。2,body体页面js。3,html结尾引入。4,baod标签函数 //js6种类型1,number。2,string。3,boolean。4,object。5,undefined.6,function。类型判断用typeof //number包括int,float,double. 计算用parentInt,parentdou...
阅读全文
spring+springMVC+mybatis+shiro -- spring-mybatis.xml
摘要:classpath:applicationContext/spring.properties ...
阅读全文
spring+springMVC+mybatis+shiro -- spring-mvc.xml
摘要:这里扫描controller,配置 jsp 视图,定义默认的项目访问路径,但是这里没有起作用,因为在web.xml里面配置了欢迎页面,我能想到的就是这个原因,web.xml里面的欢迎页面配置去掉后这里才起作用,具体其他原因就不清楚了,希望大神可以给出正确的思路。文件上传在这里是必须要配置的,否则co
阅读全文
spring+springMVC+mybatis+shiro -- web.xml
摘要:在网上看到好多都说springMVC必须在 shiroFilter前面,经测试,和位置没有关系,或者本人没有测试出应该有的功能,请大神指教。
阅读全文
单例模式
摘要:package com.test; public class Singleton { /** * 私有一个静态类为null,返回的时候判断下是否为null * 为null说明没有实例,创建一个赋值给静态变量然后返回这个静态变量, * 需要的注意的是,是返回这个静态变量,而不是返回创建的实例。 */
阅读全文
spring 整合 shiro
摘要:该架构采用spring + springMVC + shiro + ehcache搭建有哪里不对的地方请大神指明,万分感谢!! 先来个标题 接下来是 shiroFilter 这个名称和要 web.xml 里面配置的 shiroFilter 相对应, 说到这里了,顺便说下 web.xml 里面 shi
阅读全文
file_upload
摘要:<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="defaultEncoding" value="utf-8
阅读全文
浙公网安备 33010602011771号