摘要: public class Test{/*** 下面这个方法就是静态方法,就是类方法* 静态方法必须定义成static的,在类Test被实例化以前就已经存在于内存中* 静态方法使所有该类的实例也就是对象共有的方法*/public static void f1(){System.out.println( 阅读全文
posted @ 2019-08-31 16:14 銀色飞行船 阅读(267) 评论(0) 推荐(0)
摘要: 首先web.xml中配置了DispatcherServlet: DispatcherServlet中配置了视图解析器的路径: org.springframework.web.servlet.DispatcherServlet会自动过滤掉后缀。也就是说 如果接收到的请求是/user/index.sht 阅读全文
posted @ 2019-08-31 15:28 銀色飞行船 阅读(172) 评论(0) 推荐(0)
摘要: 此处的${basePath}并未在jsp页面中进行制定,但是可以直接引用。 这是因为basePath定义在FreeMarkerViewExtend类中的: model.put("basePath", request.getContextPath());//base目录。 此处的FreeMarkerV 阅读全文
posted @ 2019-08-31 15:28 銀色飞行船 阅读(168) 评论(0) 推荐(0)
摘要: 首先web.xml中配置了DispatcherServlet: DispatcherServlet中配置了视图解析器的路径: org.springframework.web.servlet.DispatcherServlet会自动过滤掉后缀。也就是说 如果接收到的请求是/user/index.sht 阅读全文
posted @ 2019-08-31 15:25 銀色飞行船 阅读(42) 评论(0) 推荐(0)
摘要: 此处的${basePath}并未在jsp页面中进行制定,但是可以直接引用。 这是因为basePath定义在FreeMarkerViewExtend类中的: model.put("basePath", request.getContextPath());//base目录。 此处的FreeMarkerV 阅读全文
posted @ 2019-08-31 15:13 銀色飞行船 阅读(53) 评论(0) 推荐(0)
摘要: test 阅读全文
posted @ 2019-08-31 11:20 銀色飞行船 阅读(99) 评论(0) 推荐(0)