maven 错误处理
摘要:如果是方法找不到或者返回参数变了,那么肯定是包被升级了,那么到仓库下把对应的包删掉,然后maven自动下载最新的。如果是包找不到,或者类找不到,那么把maven ->update maven可能可以解决
阅读全文
posted @
2014-07-29 20:03
wf110
阅读(196)
推荐(0) 编辑
aop:declare-parents注解
摘要:http://www.blogjava.net/jackfrued/archive/2010/02/27/314060.html1 2 7 或者用委托代理1 2 7 8 9 目标是 types-matching的类,spring让它实现 implement-interface所指向的...
阅读全文
posted @
2014-07-28 20:52
wf110
阅读(1697)
推荐(2) 编辑
@ModelAttribute
摘要:http://blog.csdn.net/li_xiao_ming/article/details/8349115以下是modelAttribute在页面中和controller交互http://blog.csdn.net/yeohcooller/article/details/7580763
阅读全文
posted @
2014-07-18 09:56
wf110
阅读(240)
推荐(0) 编辑
aop 注解 开启spring自带的事务
摘要:一些基本知识 可以http://jinnianshilongnian.iteye.com/blog/1415606serviceImpl.java 1 package cn.us.service.impl; 2 3 import java.util.List; 4 import java.util...
阅读全文
posted @
2014-07-10 11:49
wf110
阅读(7859)
推荐(0) 编辑
springmvc异常统一处理
摘要:http://www.cnblogs.com/xd502djj/archive/2012/09/24/2700490.html
阅读全文
posted @
2014-07-09 11:14
wf110
阅读(268)
推荐(0) 编辑
aop注解 自定义切面的注解写法
摘要:spring.xml中 1 2 15 16 17 18 java文件中 无参数的 1 package cn.us.aspect; 2 3 4 import org.aspectj.lang.annotation.AfterReturning; 5 import org.a...
阅读全文
posted @
2014-07-09 08:58
wf110
阅读(23527)
推荐(0) 编辑
springmvc多视图配置
摘要:http://blog.csdn.net/yaerfeng/article/details/23593755
阅读全文
posted @
2014-07-08 18:09
wf110
阅读(268)
推荐(0) 编辑
@Autowired(required = false)
摘要:标记在 方法上的时候,它会根据类型去spring容器中寻找 对于的形参并且注入。 1 @Repository(value="userDao") 2 public class UserDaoImpl extends SqlSessionDaoSupport implements IUserDao{ 3...
阅读全文
posted @
2014-07-08 11:18
wf110
阅读(11983)
推荐(1) 编辑
pom.xml配置详解
摘要:http://blog.csdn.net/uohzoaix/article/details/7035307
阅读全文
posted @
2014-07-07 14:06
wf110
阅读(367)
推荐(0) 编辑
setting.xml配置详解
摘要:http://blog.csdn.net/uohzoaix/article/details/7035302http://www.micmiu.com/software/build/maven-setting-xml/
阅读全文
posted @
2014-07-07 11:38
wf110
阅读(185)
推荐(0) 编辑
nexus 介绍
摘要:http://juvenshun.iteye.com/blog/349534
阅读全文
posted @
2014-07-06 16:09
wf110
阅读(148)
推荐(0) 编辑
aop注解 spring提供的事务
摘要:http://www.cnblogs.com/friends-wf/p/3826893.html 是 自定义的切面,并且添加注解 声明为切面利用spring提供的事务声明主要在 service层上加入spring提供的事务参考http://blog.chinaunix.net/uid-532511-...
阅读全文
posted @
2014-07-06 11:08
wf110
阅读(268)
推荐(0) 编辑
aop注解 事例
摘要:spring.xml中aop的配置 1 4 5 8 9 10 12 13 -->14 15 ...
阅读全文
posted @
2014-07-06 11:04
wf110
阅读(1926)
推荐(0) 编辑
spring注解 di 和 ioc 注解
摘要:注解: 1、注解就是为了说明java中的某一个部分的作用(Type) 2、注解都可以用于哪个部门是@Target注解起的作用 3、注解可以标注在ElementType枚举类所指定的位置上 4、 @Documented //该注解是否出现在帮助文档中 @Retention(RetentionPolic...
阅读全文
posted @
2014-07-06 11:02
wf110
阅读(1766)
推荐(0) 编辑
maven 发布到仓库
摘要:到nexus中看到的仓库地址 1 2 3 releases 4 Internal Releases 5 http://localhost:8080/nexus-2.1.2/content/repositories/releases...
阅读全文
posted @
2014-07-06 09:01
wf110
阅读(824)
推荐(0) 编辑
maven仓库介绍 牛人博客
摘要:http://juvenshun.iteye.com/blog/359256查找jar包方法http://juvenshun.iteye.com/blog/269094
阅读全文
posted @
2014-07-05 19:33
wf110
阅读(186)
推荐(0) 编辑
maven setting.xml配置说明
摘要:1 2 4 5 usr/local/maven 6 7 true 8 9 false 10 11 false 12 13 14 15 org.codehaus.mojo 16 17 18 19 20 21 ...
阅读全文
posted @
2014-07-05 18:42
wf110
阅读(419)
推荐(0) 编辑
maven 继承关系和聚合
摘要:maven继承管理 让版本的管理只在一个地方改变modules用于聚合,把执行的项目都放到同一的地方用module包括,可以省去一个个项目去mvn install,这样可以所有项目一次聚合 mvn install传递性依赖原则:A-->BA-->C1.路径最近者优先2.路径相同,第一声明者优先注意:...
阅读全文
posted @
2014-07-05 12:36
wf110
阅读(4813)
推荐(0) 编辑
springmvc+spring框架
摘要:jar包 1 com.springsource.javax.validation-1.0.0.GA.jar 2 com.springsource.org.aopalliance-1.0.0.jar 3 com.springsource.org.apache.commons.logging-1.1.1...
阅读全文
posted @
2014-07-04 10:48
wf110
阅读(5600)
推荐(0) 编辑
springmvc json结合
摘要:获取json数据 名字一样就获取了user1 @RequestMapping("/addUser")2 public String addUser(User user,HttpServletRequest request){3 request.setAttribu...
阅读全文
posted @
2014-07-03 16:27
wf110
阅读(474)
推荐(0) 编辑
springmvc编码问题
摘要:web.xml中加入 1 2 encodingFilter 3 org.springframework.web.filter.CharacterEncodingFilter 4 5 encoding 6 ...
阅读全文
posted @
2014-07-03 15:59
wf110
阅读(1471)
推荐(0) 编辑
springmvc最优化
摘要:java代码 1 package com.tgb.web.controller.annotation; 2 3 import javax.servlet.http.HttpServletRequest; 4 5 import org.springframework.stereotype.Cont...
阅读全文
posted @
2014-07-03 15:49
wf110
阅读(1714)
推荐(0) 编辑
url-pattern / /*匹配
摘要:http://hi.baidu.com/atell/item/522112d3db45081fd90e44e1struts2中配置为/*springmvc中关于web.xml的url映射的小知识:/会匹配到/login这样的路径型url,不会匹配到模式为*.jsp这样的后缀型url/*会匹配所有ur...
阅读全文
posted @
2014-07-03 11:47
wf110
阅读(363)
推荐(0) 编辑
velocity入门
摘要:http://wenku.baidu.com/view/b401add728ea81c758f57882.html?re=view 1 package cn.edu; 2 3 import java.io.File; 4 import java.io.FileOutputStream; 5 imp...
阅读全文
posted @
2014-07-03 09:18
wf110
阅读(375)
推荐(0) 编辑
配置eclipse插件
摘要:http://blog.csdn.net/zhangyabinsky/article/details/7043435
阅读全文
posted @
2014-07-02 11:20
wf110
阅读(156)
推荐(0) 编辑