会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ForeignStudent
博客园
首页
新随笔
联系
管理
订阅
2018年4月12日
文件上传
摘要: 注: 文件上传方式有多种; 但是ajax利用FormData对象传输文件,后台接收不到文件,具体原因不明,有待继续验证 下面补上ajax上传方式,经测试可以上传
阅读全文
posted @ 2018-04-12 17:10 ForeignStudent
阅读(136)
评论(0)
推荐(0)
2017年11月20日
AOP 切面
摘要: /** * 配置aop首先得配置需要aop业务的类 例如 * 其次需要配置aop处理类 例如 * 然后配置相应的通知方式 * 需要注意的是,需修改返回值的话只能在环绕通知中修改 * 在一个是参数的传递,只要看懂配置方式aop,就可以依葫芦画瓢摸索出注解方式 */ ...
阅读全文
posted @ 2017-11-20 18:22 ForeignStudent
阅读(416)
评论(0)
推荐(0)
2017年10月28日
验证码-
摘要: package com.cyparty.laihui.utilities; import javax.imageio.ImageIO; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import...
阅读全文
posted @ 2017-10-28 16:13 ForeignStudent
阅读(774)
评论(0)
推荐(0)
2017年10月27日
验证码
摘要: /** * 生成图形验证码 */ @RequestMapping("captcha.jpg") public void captcha(HttpServletRequest request, HttpServletResponse response) { dreamCaptcha.generate(
阅读全文
posted @ 2017-10-27 20:53 ForeignStudent
阅读(482)
评论(0)
推荐(0)
2017年9月28日
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...
阅读全文
posted @ 2017-09-28 01:45 ForeignStudent
阅读(234)
评论(0)
推荐(0)
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)
下一页