File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ public class Constants {
2020
2121 /* 配置信息 */
2222 public static String PACKAGE_PREFIX = "org.eh.web." ; // 包前缀
23- public static String VIEW_BASE_PATH = "org/eh/web/view/" ; // view包路径
23+ public static String VIEW_BASE_PATH = "" ; // 路径
24+ public static String STATIC_RESOURCE_PATH = "" ; // 静态文件路径
2425
2526 public static Map <String , String > UrlClassMap = new HashMap <String , String >(); // url与class映射
2627 public static Map <String , String > OTHER_CONFIG_INFO = new HashMap <String , String >(); // 其他配置信息
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ private String analysisViewPath(String viewPath) {
6969 }
7070
7171 private String analysisVelocityViewPath (String viewPath ) {
72- String path = Constants .VIEW_BASE_PATH + viewPath + ".vm" ;
72+ String path = Constants .VIEW_BASE_PATH + "/" + viewPath + ".vm" ;
7373 return path ;
7474 }
7575}
Original file line number Diff line number Diff line change 11# 包前缀
22PACKAGE_PREFIX =org.eh.web
33
4- # view页面根路径
5- VIEW_BASE_PATH =org/eh/web/view/
4+ # 模板页面根路径(相对classes文件夹,项目src/main/view下)
5+ VIEW_BASE_PATH =page
66
7- # controller包路径,配置后可通过annocation直接配置
8- controller.package = org.eh.web.controller
7+ # 静态资源路劲(相对classes文件夹,项目src/main/view下)
8+ STATIC_RESOURCE_PATH = static
99
1010# 端口
1111httpserver.port =8888
1212
13+ # controller包路径,配置后可通过annocation直接配置
14+ controller.package =com.gj.web.controller
15+
1316# url与controller类对应关系
14- url/test/list =org.eh.web.controller.TestController
15- url/test/other =org.eh.web.controller.TestController
17+ # url/list=com.gj.web.controller.MyController
Original file line number Diff line number Diff line change 11# 包前缀
22PACKAGE_PREFIX =org.eh.web
33
4- # view页面根路径
5- VIEW_BASE_PATH =org/eh/web/view/
4+ # 模板页面根路径(相对classes文件夹,项目src/main/view下)
5+ VIEW_BASE_PATH =page
66
7- # controller包路径,配置后可通过annocation直接配置
8- controller.package = org.eh.web.controller
7+ # 静态资源路劲(相对classes文件夹,项目src/main/view下)
8+ STATIC_RESOURCE_PATH = static
99
1010# 端口
1111httpserver.port =8888
1212
13+ # controller包路径,配置后可通过annocation直接配置
14+ controller.package =com.gj.web.controller
15+
1316# url与controller类对应关系
14- url/test/list =org.eh.web.controller.TestController
15- url/test/other =org.eh.web.controller.TestController
17+ # url/list=com.gj.web.controller.MyController
You can’t perform that action at this time.
0 commit comments