• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ForeignStudent
博客园    首页    新随笔    联系   管理    订阅  订阅
2017年9月25日
spring+springMVC+mybatis+shiro -- spring-redis.xml
摘要: redis配置 ... 阅读全文
posted @ 2017-09-25 21:37 ForeignStudent 阅读(475) 评论(0) 推荐(0)
spring+springMVC+mybatis+shiro -- spring-ehcache.xml
摘要: 对应的ehcache.xml 阅读全文
posted @ 2017-09-25 21:34 ForeignStudent 阅读(766) 评论(0) 推荐(0)
spring+springMVC+mybatis+shiro -- spring-mybatis.xml
摘要: classpath:applicationContext/spring.properties ... 阅读全文
posted @ 2017-09-25 21:29 ForeignStudent 阅读(280) 评论(0) 推荐(0)
spring+springMVC+mybatis+shiro -- spring-mvc.xml
摘要: 这里扫描controller,配置 jsp 视图,定义默认的项目访问路径,但是这里没有起作用,因为在web.xml里面配置了欢迎页面,我能想到的就是这个原因,web.xml里面的欢迎页面配置去掉后这里才起作用,具体其他原因就不清楚了,希望大神可以给出正确的思路。文件上传在这里是必须要配置的,否则co 阅读全文
posted @ 2017-09-25 21:11 ForeignStudent 阅读(365) 评论(0) 推荐(0)
spring+springMVC+mybatis+shiro -- spring-config.xml
摘要: 这里只扫描服务层,其他都在对应的层扫描。 阅读全文
posted @ 2017-09-25 21:02 ForeignStudent 阅读(707) 评论(0) 推荐(0)
spring+springMVC+mybatis+shiro -- web.xml
摘要: 在网上看到好多都说springMVC必须在 shiroFilter前面,经测试,和位置没有关系,或者本人没有测试出应该有的功能,请大神指教。 阅读全文
posted @ 2017-09-25 20:58 ForeignStudent 阅读(256) 评论(0) 推荐(0)
单例模式
摘要: package com.test; public class Singleton { /** * 私有一个静态类为null,返回的时候判断下是否为null * 为null说明没有实例,创建一个赋值给静态变量然后返回这个静态变量, * 需要的注意的是,是返回这个静态变量,而不是返回创建的实例。 */ 阅读全文
posted @ 2017-09-25 20:30 ForeignStudent 阅读(119) 评论(0) 推荐(0)
spring 整合 shiro
摘要: 该架构采用spring + springMVC + shiro + ehcache搭建有哪里不对的地方请大神指明,万分感谢!! 先来个标题 接下来是 shiroFilter 这个名称和要 web.xml 里面配置的 shiroFilter 相对应, 说到这里了,顺便说下 web.xml 里面 shi 阅读全文
posted @ 2017-09-25 15:49 ForeignStudent 阅读(769) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3