鍙傝僪ttp://blog.csdn.net/sunhuwh/article/details/38945445
閫氳繃璇誨彇.properties閰嶇疆鏂囦歡涓殑閿兼潵瀹炵幇鍔ㄦ佹坊鍔犳敞瑙e唴瀹逛緥濡侤Controller @RequestMapping(value = "${adminPath}/act/model")
涓銆侀渶瑕佹敞瑙g殑JAVA紼嬪簭浠g爜銆?br />@Controller
@RequestMapping(value = "${adminPath}/act/model")
public class ActModelController extends BaseController {
@Autowired
private ActModelService actModelService;
/**
* 嫻佺▼妯″瀷鍒楄〃
*/
@RequiresPermissions("act:model:edit")
@RequestMapping(value = { "list", "" })
public String modelList(String category, HttpServletRequest request, HttpServletResponse response, Model model) {
Page<org.activiti.engine.repository.Model> page = actModelService.modelList(
new Page<org.activiti.engine.repository.Model>(request, response), category);
model.addAttribute("page", page);
model.addAttribute("category", category);
return "modules/act/actModelList";
}
}
浜屻乸roperties閰嶇疆鏂囦歡鐨勫唴瀹?br />
adminPath=/a
涓夈丄pplicationContext.xml涓姞杞絧roperties閰嶇疆鏂囦歡鍐呭
<!-- 鍔犺澆閰嶇疆灞炴ф枃浠?-->
<context:property-placeholder ignore-unresolvable="true" location="classpath:jeesite.properties" />
<!-- 鍔犺澆搴旂敤灞炴у疄渚嬶紝鍙氳繃 @Value("#{APP_PROP['jdbc.driver']}") String jdbcDriver 鏂瑰紡寮曠敤 -->
<util:properties id="APP_PROP" location="classpath:jeesite.properties" local-override="true"/>

]]>