摘要: 示例: applicationContext-xml.xml: 注:重点在代码里。 VlidationAspect.java: LoggingAspect.java: ArithmeticCalculator.java: ArithmeticCalculatorImpl.java: 运行结果: 阅读全文
posted @ 2018-09-22 19:40 猩生柯北 阅读(1030) 评论(0) 推荐(0)
摘要: 【Hello World】 步骤: (1)加入jar包, (2)在web.xml中配置DispatcherServlet, (3)加入Spring MVC的配置文件, (4)编写处理请求的处理器,并标识为处理器 (5)编写视图 (1) (2) web.xml: (3) springmvc.xml: 阅读全文
posted @ 2018-09-22 16:25 猩生柯北 阅读(145) 评论(0) 推荐(0)