摘要:
1.通过配置 redirect:/error.jsp 2、在controller中添加异常处理handler@ExceptionHandler(RuntimeException.class) public String exception(Ru... 阅读全文
摘要:
1、 TagSupport与BodyTagSupport的区别TagSupport与BodyTagSupport的区别主要是标签处理类是否需要与标签体交互,如果不需要交互的就用TagSupport,否则如果需要交互就用BodyTagSupport。 交互就是标签处理类是否要读取标签体的内容和改变标签... 阅读全文
摘要:
拖动事件 Box1 Link Box2 阅读全文
摘要:
1、通过HttpRequest @RequestMapping("/save.do") public String Save(HttpServletRequest request){ String userName=request.getParameter("userName"); String... 阅读全文
摘要:
Spring AOP 手动配置通知类前置通知import java.lang.reflect.Method;import org.springframework.aop.BeforeAdvice;public class GreetingBeforAdvice implements MethodBe... 阅读全文
摘要:
JDK的动态代理,只适用面向接口编程定义接口public interface UserService { public void buy(String userName); public String Say(String words);}实现类public class UserServiceImp... 阅读全文
摘要:
ClassLoader loader= Thread.currentThread().getContextClassLoader(); Class clz = loader.loadClass("com.easeye.test.Student"); Constructor[] con=... 阅读全文
摘要:
Resource resource = new ClassPathResource("/bean.xml"); resource = new FileSystemResource("d:/tzspring02/src/bean.xml"); XmlBeanFactory xmlBeanFac... 阅读全文
摘要:
关联更新create trigger Customer_Update on Customer after update as update Customer set OrgNamePY = dbo.fun_getPY(Customer.OrgName) from Customer,deleted ... 阅读全文
摘要:
Linq 实现in查询Dictionary dict = new Dictionary(); dict.Add(1, new IP("192.168.100.1", 81, 11)); dict.Add(2, new IP("192.168.100.2",... 阅读全文