首页>代码>ssm整合easyui实现简单的进销存管理系统(适合新手学习easyui)>/phoneInventory/src/main/java/com/chen/controller/BaseController.java
package com.chen.controller; import javax.annotation.Resource; import javax.servlet.ServletContext; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; /** * 共有方法 * @author chenguoji * */ @Controller @RequestMapping("/base") public class BaseController { @Resource ServletContext application; //方法参数folder通过@PathVariable指定其值可以从@RequestMapping的{folder}获取,同理file也一样 @RequestMapping("/goURL/{folder}/{file}") public String goURL(@PathVariable String folder,@PathVariable String file) { return "forward:/WEB-INF/views/"+folder+"/"+file+".jsp"; } }
最近下载更多
weilaizhisheng LV21
3月21日
oldfox LV18
2023年7月28日
cunbie LV4
2023年6月13日
yeyuuu LV6
2023年5月18日
微信网友_6481263246938112 LV2
2023年5月18日
2102565387 LV1
2022年12月17日
184445428 LV6
2022年11月28日
计算机暴龙战士 LV16
2022年11月27日
lwp011 LV27
2022年9月19日
13645180698 LV4
2022年8月4日
最近浏览更多
pangzhihui LV12
前天
来了来了拉
前天
暂无贡献等级
weilaizhisheng LV21
3月21日
h G24741 LV2
3月12日
midyn203 LV2
2月5日
XiaoSong888 LV2
1月10日
沈从文 LV2
1月1日
202105013142 LV1
2023年12月17日
durianmoto
2023年12月2日
暂无贡献等级
1437047954
2023年11月29日
暂无贡献等级