Commit 18ece557c78d56d109f74c1c1775baaec38f5e9b
1 parent
b1c24772
删除多余配置
Showing
3 changed files
with
255 additions
and
278 deletions
diligrp-manage-manager/src/main/java/com/diligrp/manage/manager/menu/impl/MenuManagerImpl.java
... | ... | @@ -167,273 +167,275 @@ public class MenuManagerImpl implements MenuManager { |
167 | 167 | return children; |
168 | 168 | |
169 | 169 | } |
170 | - | |
171 | - private Menu buildMenuTree(Menu parent, List<Menu> children, Set<Menu> nodes) { | |
172 | - for(Menu node : children) { | |
170 | + | |
171 | + private Menu buildMenuTree(Menu parent, List<Menu> children, Set<Menu> nodes) { | |
172 | + for (Menu node : children) { | |
173 | 173 | buildMenuTree(node, getMenusWithParentId(node.getId(), nodes), nodes); |
174 | 174 | } |
175 | 175 | parent.getChildren().addAll(children); |
176 | 176 | return parent; |
177 | 177 | } |
178 | - | |
179 | - | |
180 | - /** | |
181 | - * 重组层次结构 | |
182 | - * @param menu | |
183 | - * @param menuMap | |
184 | - * @return | |
185 | - */ | |
186 | - private List<Menu> regroup(Menu menu, Map<Long, Menu> menuMap) { | |
187 | - | |
188 | - List<Menu> temp = new ArrayList<>(); | |
189 | - //如果在map中找到以某menu的父节点作为id的menu,则说明该节点不是父节点 | |
190 | - Menu parent = menuMap.get(menu.getParentId()); | |
191 | - //parent为空说明该节点为顶级父节点,则直接返回该对象 | |
192 | - if (parent == null) { | |
193 | - //menuMap.put(menu.getParentId(), parent); | |
194 | - temp.add(menu); | |
195 | - // List<Menu> t = regroup(parent, menuMap); | |
196 | - // temp.addAll(t); | |
197 | - } else { | |
198 | - //如果parent不为空,说明该对象有父级,则将该对象加入其父对象的子集中,并返回,并迭代该对象看是否还有父级 | |
199 | - parent.addChildren(menu); | |
200 | - } | |
201 | - return temp; | |
202 | - } | |
203 | -// private List<Menu> regroup(Menu menu, Map<Long, Menu> menuMap) { | |
204 | -// List<Menu> temp = new ArrayList<>(); | |
205 | -// if (menu.getIsRoot() != 0) { | |
206 | -// return temp; | |
207 | -// } | |
208 | -// Menu parent = menuMap.get(menu.getParentId()); | |
209 | -// if (parent == null) { | |
210 | -// Menu par = findOne(menu.getParentId()); | |
211 | -// if (par != null) { | |
212 | -// parent = par; | |
213 | -// menuMap.put(menu.getParentId(), parent); | |
214 | -// temp.add(parent); | |
215 | -// List<Menu> t = regroup(parent, menuMap); | |
216 | -// temp.addAll(t); | |
217 | -// } | |
218 | -// } | |
219 | -// parent.addChildren(menu); | |
220 | -// return temp; | |
221 | -// } | |
222 | - | |
223 | - /** | |
224 | - * 将nav转换成menu, 并转换成一个树结构 | |
225 | - * @param menus | |
226 | - * @return | |
227 | - */ | |
228 | -// private Map<Long, Menu> parseNav(Set<Menu> menus){ | |
229 | -// Map<Long, Menu> tree = new HashMap<>(); | |
230 | -// for (Menu menu : menus) { | |
231 | -// if(menu.getIsRoot() == 0){ | |
232 | -// continue; | |
233 | -// } | |
234 | -// if (!tree.containsKey(menu.getNavbarId())) { | |
235 | -// Menu nav = new Menu(); | |
236 | -// Navbar navbar = navbarManager.findOne(menu.getNavbarId()); | |
237 | -// nav.setLabel(navbar.getProjectName()); | |
238 | -// nav.setId(menu.getNavbarId()); | |
239 | -// nav.setParentId(0l); | |
240 | -// nav.setType(2); | |
241 | -// tree.put(menu.getNavbarId(), nav); | |
242 | -// } | |
243 | -// Menu nav = tree.get(menu.getNavbarId()); | |
244 | -// nav.addChildren(menu); | |
245 | -// } | |
246 | -// return tree; | |
247 | -// } | |
248 | - | |
249 | 178 | |
250 | - /** | |
251 | - * 根据父节点查询菜单 | |
252 | - * @param id | |
253 | - * @return | |
254 | - */ | |
255 | - public List<Menu> findByParent(Long id) { | |
256 | - if (redisUtils.checkKeyExists(Menu.listChildrenKey(id))) { | |
257 | - return redisUtils.getList(Menu.listChildrenKey(id), Menu.class); | |
258 | - } | |
259 | - List<Menu> list = menuDao.findByParent(id); | |
260 | - redisUtils.setObject(Menu.listChildrenKey(id), list); | |
261 | - return list; | |
262 | - } | |
263 | - | |
264 | - | |
265 | - @Override | |
266 | - public void sort(Menu menu) { | |
267 | - if(LOG.isInfoEnabled()) { | |
268 | - LOG.info("开始进行移动位置, menu:" + JSON.toJSONString(menu)); | |
269 | - } | |
270 | - // 1. 旧node | |
271 | - Menu obj = findOne(menu.getId()); | |
272 | - // 2. 旧list | |
273 | - List<Menu> list = findByParent(obj.getParentId()); | |
274 | - // 3. 剔除旧node,添加新状态(TODO,可以优化为交换) | |
275 | - Menu t = null; | |
276 | - for (int i = 0; i < list.size(); i ++) { | |
277 | - Menu m = list.get(i); | |
278 | - if (m.getId().equals(obj.getId())) { | |
279 | - t = m; | |
280 | - break; | |
281 | - } | |
282 | - } | |
283 | - list.remove(t); | |
284 | - int sort = menu.getSort(); | |
285 | - if (sort >= list.size()) { | |
286 | - sort = list.size(); | |
287 | - } | |
288 | - if (sort < 0) { | |
289 | - sort = 0; | |
290 | - } | |
291 | - list.add(sort, t); | |
292 | - // 4. 新list | |
293 | - for (int i = 0; i < list.size(); i ++) { | |
294 | - Menu m = list.get(i); | |
295 | - m.setSort(i); | |
296 | - update(m); | |
297 | - } | |
298 | - if (LOG.isInfoEnabled()) { | |
299 | - LOG.info("移动位置成功!"); | |
300 | - } | |
301 | - } | |
302 | - | |
303 | - @Override | |
304 | - public void move(Menu menu) { | |
305 | - Menu m = menuDao.getById(menu.getId()); | |
306 | - m.setParentId(menu.getParentId()); | |
307 | - menuDao.update(m); | |
308 | - m.setSort(0); | |
309 | - sort(m); | |
310 | - } | |
179 | + /** | |
180 | + * 重组层次结构 | |
181 | + * | |
182 | + * @param menu | |
183 | + * @param menuMap | |
184 | + * @return | |
185 | + */ | |
186 | + private List<Menu> regroup(Menu menu, Map<Long, Menu> menuMap) { | |
187 | + | |
188 | + List<Menu> temp = new ArrayList<>(); | |
189 | + // 如果在map中找到以某menu的父节点作为id的menu,则说明该节点不是父节点 | |
190 | + Menu parent = menuMap.get(menu.getParentId()); | |
191 | + // parent为空说明该节点为顶级父节点,则直接返回该对象 | |
192 | + if (parent == null) { | |
193 | + // menuMap.put(menu.getParentId(), parent); | |
194 | + temp.add(menu); | |
195 | + // List<Menu> t = regroup(parent, menuMap); | |
196 | + // temp.addAll(t); | |
197 | + } else { | |
198 | + // 如果parent不为空,说明该对象有父级,则将该对象加入其父对象的子集中,并返回,并迭代该对象看是否还有父级 | |
199 | + parent.addChildren(menu); | |
200 | + } | |
201 | + return temp; | |
202 | + } | |
203 | + // private List<Menu> regroup(Menu menu, Map<Long, Menu> menuMap) { | |
204 | + // List<Menu> temp = new ArrayList<>(); | |
205 | + // if (menu.getIsRoot() != 0) { | |
206 | + // return temp; | |
207 | + // } | |
208 | + // Menu parent = menuMap.get(menu.getParentId()); | |
209 | + // if (parent == null) { | |
210 | + // Menu par = findOne(menu.getParentId()); | |
211 | + // if (par != null) { | |
212 | + // parent = par; | |
213 | + // menuMap.put(menu.getParentId(), parent); | |
214 | + // temp.add(parent); | |
215 | + // List<Menu> t = regroup(parent, menuMap); | |
216 | + // temp.addAll(t); | |
217 | + // } | |
218 | + // } | |
219 | + // parent.addChildren(menu); | |
220 | + // return temp; | |
221 | + // } | |
222 | + | |
223 | + /** | |
224 | + * 将nav转换成menu, 并转换成一个树结构 | |
225 | + * | |
226 | + * @param menus | |
227 | + * @return | |
228 | + */ | |
229 | + // private Map<Long, Menu> parseNav(Set<Menu> menus){ | |
230 | + // Map<Long, Menu> tree = new HashMap<>(); | |
231 | + // for (Menu menu : menus) { | |
232 | + // if(menu.getIsRoot() == 0){ | |
233 | + // continue; | |
234 | + // } | |
235 | + // if (!tree.containsKey(menu.getNavbarId())) { | |
236 | + // Menu nav = new Menu(); | |
237 | + // Navbar navbar = navbarManager.findOne(menu.getNavbarId()); | |
238 | + // nav.setLabel(navbar.getProjectName()); | |
239 | + // nav.setId(menu.getNavbarId()); | |
240 | + // nav.setParentId(0l); | |
241 | + // nav.setType(2); | |
242 | + // tree.put(menu.getNavbarId(), nav); | |
243 | + // } | |
244 | + // Menu nav = tree.get(menu.getNavbarId()); | |
245 | + // nav.addChildren(menu); | |
246 | + // } | |
247 | + // return tree; | |
248 | + // } | |
249 | + | |
250 | + /** | |
251 | + * 根据父节点查询菜单 | |
252 | + * | |
253 | + * @param id | |
254 | + * @return | |
255 | + */ | |
256 | + public List<Menu> findByParent(Long id) { | |
257 | + if (redisUtils.checkKeyExists(Menu.listChildrenKey(id))) { | |
258 | + return redisUtils.getList(Menu.listChildrenKey(id), Menu.class); | |
259 | + } | |
260 | + List<Menu> list = menuDao.findByParent(id); | |
261 | + redisUtils.setObject(Menu.listChildrenKey(id), list); | |
262 | + return list; | |
263 | + } | |
311 | 264 | |
265 | + @Override | |
266 | + public void sort(Menu menu) { | |
267 | + if (LOG.isInfoEnabled()) { | |
268 | + LOG.info("开始进行移动位置, menu:" + JSON.toJSONString(menu)); | |
269 | + } | |
270 | + // 1. 旧node | |
271 | + Menu obj = findOne(menu.getId()); | |
272 | + // 2. 旧list | |
273 | + List<Menu> list = findByParent(obj.getParentId()); | |
274 | + // 3. 剔除旧node,添加新状态(TODO,可以优化为交换) | |
275 | + Menu t = null; | |
276 | + for (int i = 0; i < list.size(); i++) { | |
277 | + Menu m = list.get(i); | |
278 | + if (m.getId().equals(obj.getId())) { | |
279 | + t = m; | |
280 | + break; | |
281 | + } | |
282 | + } | |
283 | + list.remove(t); | |
284 | + int sort = menu.getSort(); | |
285 | + if (sort >= list.size()) { | |
286 | + sort = list.size(); | |
287 | + } | |
288 | + if (sort < 0) { | |
289 | + sort = 0; | |
290 | + } | |
291 | + list.add(sort, t); | |
292 | + // 4. 新list | |
293 | + for (int i = 0; i < list.size(); i++) { | |
294 | + Menu m = list.get(i); | |
295 | + m.setSort(i); | |
296 | + update(m); | |
297 | + } | |
298 | + if (LOG.isInfoEnabled()) { | |
299 | + LOG.info("移动位置成功!"); | |
300 | + } | |
301 | + } | |
312 | 302 | |
313 | - public Menu findOne(Long pk) { | |
314 | - if (redisUtils.checkKeyExists(Menu.itemKey(pk))) { | |
315 | - return redisUtils.getObject(Menu.itemKey(pk), Menu.class); | |
316 | - } | |
317 | - Menu menu = menuDao.getById(pk); | |
318 | - redisUtils.setObject(Menu.itemKey(pk), menu); | |
319 | - return menu; | |
320 | - } | |
303 | + @Override | |
304 | + public void move(Menu menu) { | |
305 | + Menu m = menuDao.getById(menu.getId()); | |
306 | + m.setParentId(menu.getParentId()); | |
307 | + menuDao.update(m); | |
308 | + m.setSort(0); | |
309 | + sort(m); | |
310 | + } | |
321 | 311 | |
322 | - public Boolean save(Menu menu) { | |
323 | - // 去重 | |
324 | - BaseQuery bq = new BaseQuery(); | |
325 | - bq.addParam("parentId", menu.getParentId().toString()); | |
326 | - bq.addParam("label", menu.getLabel().toString()); | |
327 | - if (menuDao.countByCondition(bq) > 0) { | |
328 | - return false; | |
329 | - } | |
312 | + public Menu findOne(Long pk) { | |
313 | + if (redisUtils.checkKeyExists(Menu.itemKey(pk))) { | |
314 | + return redisUtils.getObject(Menu.itemKey(pk), Menu.class); | |
315 | + } | |
316 | + Menu menu = menuDao.getById(pk); | |
317 | + redisUtils.setObject(Menu.itemKey(pk), menu); | |
318 | + return menu; | |
319 | + } | |
330 | 320 | |
331 | - if (menu.getParentId() != null) { | |
332 | - redisUtils.deleteByKey(Menu.listChildrenKey(menu.getParentId())); | |
333 | - } | |
334 | - redisUtils.deleteByKey(Menu.allTreeKey()); | |
335 | -// if(menu.getType().equals(Menu.TYPE_LEAF)) { | |
336 | -// Resource resource = Resource.makeGetResource(menu); | |
337 | -// resourceManager.save(resource); | |
338 | -// } | |
321 | + public Boolean save(Menu menu) { | |
322 | + // 去重 | |
323 | + BaseQuery bq = new BaseQuery(); | |
324 | + bq.addParam("parentId", menu.getParentId().toString()); | |
325 | + bq.addParam("label", menu.getLabel().toString()); | |
326 | + if (menuDao.countByCondition(bq) > 0) { | |
327 | + return false; | |
328 | + } | |
339 | 329 | |
340 | - return menuDao.save(menu); | |
341 | - } | |
330 | + if (menu.getParentId() != null) { | |
331 | + redisUtils.deleteByKey(Menu.listChildrenKey(menu.getParentId())); | |
332 | + } | |
333 | + redisUtils.deleteByKey(Menu.allTreeKey()); | |
334 | + // if(menu.getType().equals(Menu.TYPE_LEAF)) { | |
335 | + // Resource resource = Resource.makeGetResource(menu); | |
336 | + // resourceManager.save(resource); | |
337 | + // } | |
342 | 338 | |
343 | - public Boolean update(Menu menu) { | |
344 | -// // 去重 | |
345 | -// BaseQuery bq = new BaseQuery(); | |
346 | -// bq.addParam("parentId", menu.getParentId().toString()); | |
347 | -// bq.addParam("label", menu.getLabel().toString()); | |
348 | -// List<Menu> r = menuDao.listByCondition(bq); | |
349 | -// if (r.size() == 1 && menu.getId() != r.get(0).getId()) { | |
350 | -// return false; | |
351 | -// } | |
339 | + return menuDao.save(menu); | |
340 | + } | |
352 | 341 | |
353 | - if (menu.getParentId() != null) { | |
354 | - redisUtils.deleteByKey(Menu.listChildrenKey(menu.getParentId())); | |
355 | - } | |
356 | - redisUtils.deleteByKey(Menu.itemKey(menu.getId())); | |
357 | - redisUtils.deleteByKey(Menu.allTreeKey()); | |
358 | - return menuDao.update(menu); | |
359 | - } | |
342 | + public Boolean update(Menu menu) { | |
343 | + // // 去重 | |
344 | + // BaseQuery bq = new BaseQuery(); | |
345 | + // bq.addParam("parentId", menu.getParentId().toString()); | |
346 | + // bq.addParam("label", menu.getLabel().toString()); | |
347 | + // List<Menu> r = menuDao.listByCondition(bq); | |
348 | + // if (r.size() == 1 && menu.getId() != r.get(0).getId()) { | |
349 | + // return false; | |
350 | + // } | |
351 | + | |
352 | + if (menu.getParentId() != null) { | |
353 | + redisUtils.deleteByKey(Menu.listChildrenKey(menu.getParentId())); | |
354 | + } | |
355 | + redisUtils.deleteByKey(Menu.itemKey(menu.getId())); | |
356 | + redisUtils.deleteByKey(Menu.allTreeKey()); | |
357 | + return menuDao.update(menu); | |
358 | + } | |
360 | 359 | |
361 | - public Boolean delByNavbar(Long id) { | |
362 | - return menuDao.delByNavbar(id); | |
363 | - } | |
360 | + public Boolean delByNavbar(Long id) { | |
361 | + return menuDao.delByNavbar(id); | |
362 | + } | |
364 | 363 | |
365 | - public Boolean del(Long id) { | |
366 | - Menu menu = findOne(id); | |
367 | - if (menu == null) { | |
368 | - return true; | |
369 | - } | |
370 | - recursionMenuUsed(menu); | |
364 | + public Boolean del(Long id) { | |
365 | + Menu menu = findOne(id); | |
366 | + if (menu == null) { | |
367 | + return true; | |
368 | + } | |
369 | + recursionMenuUsed(menu); | |
371 | 370 | |
372 | - if (menu.getParentId() != null) { | |
373 | - redisUtils.deleteByKey(Menu.listChildrenKey(menu.getParentId())); | |
374 | - } | |
375 | - redisUtils.deleteByKey(Menu.itemKey(id)); | |
376 | - redisUtils.deleteByKey(Menu.allTreeKey()); | |
371 | + if (menu.getParentId() != null) { | |
372 | + redisUtils.deleteByKey(Menu.listChildrenKey(menu.getParentId())); | |
373 | + } | |
374 | + redisUtils.deleteByKey(Menu.itemKey(id)); | |
375 | + redisUtils.deleteByKey(Menu.allTreeKey()); | |
377 | 376 | |
378 | - recursionDel(menu); | |
377 | + recursionDel(menu); | |
379 | 378 | |
380 | - return true; | |
381 | - } | |
379 | + return true; | |
380 | + } | |
382 | 381 | |
383 | - /** | |
384 | - * 递归删除菜单 | |
385 | - * @param menu | |
386 | - */ | |
387 | - private void recursionDel(Menu menu){ | |
388 | - if(menu.getType().equals(Menu.TYPE_DIR)) { | |
389 | - List<Menu> list = menuDao.findByParent(menu.getId()); | |
390 | - for (Menu m : list) { | |
391 | - recursionDel(m); | |
392 | - } | |
393 | - } | |
394 | - List<Resource> resources = resourceManager.findByParent(menu.getId()); | |
395 | - for (Resource r : resources) { | |
396 | - resourceManager.del(r.getId()); | |
397 | - } | |
398 | - menuDao.deleteById(menu.getId()); | |
399 | - } | |
382 | + /** | |
383 | + * 递归删除菜单 | |
384 | + * | |
385 | + * @param menu | |
386 | + */ | |
387 | + private void recursionDel(Menu menu) { | |
388 | + if (menu.getType().equals(Menu.TYPE_DIR)) { | |
389 | + List<Menu> list = menuDao.findByParent(menu.getId()); | |
390 | + for (Menu m : list) { | |
391 | + recursionDel(m); | |
392 | + } | |
393 | + } | |
394 | + List<Resource> resources = resourceManager.findByParent(menu.getId()); | |
395 | + for (Resource r : resources) { | |
396 | + resourceManager.del(r.getId()); | |
397 | + } | |
398 | + menuDao.deleteById(menu.getId()); | |
399 | + } | |
400 | 400 | |
401 | - /** | |
402 | - * 递归判断菜单是否被使用 | |
403 | - * @param menu | |
404 | - */ | |
405 | - private void recursionMenuUsed(Menu menu) { | |
406 | - if (menu == null || menu.getId() == null) { | |
407 | - return ; | |
408 | - } | |
409 | - String using = isUsed(menu.getId()); | |
410 | - if (!using.equals("")) { | |
411 | - throw new RuntimeException("菜单或子菜单在角色[" +using +"]中正在使用, 不能进行删除!"); | |
412 | - } | |
413 | - if (menu.getType().equals(Menu.TYPE_DIR)) { | |
414 | - List<Menu> list = menuDao.findByParent(menu.getId()); | |
415 | - for (Menu m : list) { | |
416 | - recursionMenuUsed(m); | |
417 | - } | |
418 | - } | |
419 | - } | |
401 | + /** | |
402 | + * 递归判断菜单是否被使用 | |
403 | + * | |
404 | + * @param menu | |
405 | + */ | |
406 | + private void recursionMenuUsed(Menu menu) { | |
407 | + if (menu == null || menu.getId() == null) { | |
408 | + return; | |
409 | + } | |
410 | + String using = isUsed(menu.getId()); | |
411 | + if (!using.equals("")) { | |
412 | + throw new RuntimeException("菜单或子菜单在角色[" + using + "]中正在使用, 不能进行删除!"); | |
413 | + } | |
414 | + if (menu.getType().equals(Menu.TYPE_DIR)) { | |
415 | + List<Menu> list = menuDao.findByParent(menu.getId()); | |
416 | + for (Menu m : list) { | |
417 | + recursionMenuUsed(m); | |
418 | + } | |
419 | + } | |
420 | + } | |
420 | 421 | |
421 | - /** | |
422 | - * 是否被使用 | |
423 | - * @param menuId | |
424 | - * @return | |
425 | - */ | |
426 | - private String isUsed(Long menuId) { | |
427 | - List<Role> list = roleManager.findByMenu(menuId); | |
428 | - String roles = ""; | |
429 | - for (Role r : list) { | |
430 | - if (!"".equals(roles)) { | |
431 | - roles += ","; | |
432 | - } | |
433 | - roles += r.getRoleName(); | |
434 | - } | |
435 | - return roles; | |
436 | - } | |
422 | + /** | |
423 | + * 是否被使用 | |
424 | + * | |
425 | + * @param menuId | |
426 | + * @return | |
427 | + */ | |
428 | + private String isUsed(Long menuId) { | |
429 | + List<Role> list = roleManager.findByMenu(menuId); | |
430 | + String roles = ""; | |
431 | + for (Role r : list) { | |
432 | + if (!"".equals(roles)) { | |
433 | + roles += ","; | |
434 | + } | |
435 | + roles += r.getRoleName(); | |
436 | + } | |
437 | + return roles; | |
438 | + } | |
437 | 439 | |
438 | 440 | @Override |
439 | 441 | public List<MenuJson> findAllMenuJson() { |
... | ... | @@ -446,10 +448,9 @@ public class MenuManagerImpl implements MenuManager { |
446 | 448 | return menuDao.countAllChild(parentId); |
447 | 449 | } |
448 | 450 | |
449 | - @Override | |
450 | - public List<Menu> findAll() { | |
451 | - return menuDao.findAll(); | |
452 | - } | |
453 | - | |
451 | + @Override | |
452 | + public List<Menu> findAll() { | |
453 | + return menuDao.findAll(); | |
454 | + } | |
454 | 455 | |
455 | 456 | } | ... | ... |
diligrp-manage-web/pom.xml
... | ... | @@ -83,7 +83,7 @@ |
83 | 83 | <project.website.domain>http://www.zandeapp.com/</project.website.domain> |
84 | 84 | |
85 | 85 | <!-- 验证码地址 --> |
86 | - <project.verifycode.path>https://authcode.zandeapp.com/verify/image?acid=</project.verifycode.path> | |
86 | + <project.verifycode.path>http://authcode.zandeapp.com/verify/image?acid=</project.verifycode.path> | |
87 | 87 | |
88 | 88 | <!-- 验证码校验地址 --> |
89 | 89 | <project.verifycode.validate>http://authcode.zandeapp.com/verify/validate?acid=</project.verifycode.validate> |
... | ... | @@ -174,29 +174,5 @@ |
174 | 174 | <db.dbpool.jdbc.password>123456</db.dbpool.jdbc.password> |
175 | 175 | </properties> |
176 | 176 | </profile> |
177 | - | |
178 | - <profile> | |
179 | - <id>test</id> | |
180 | - <properties> | |
181 | - <!-- redis 配置 --> | |
182 | - <project.redis.host1>10.28.10.207</project.redis.host1> | |
183 | - <project.redis.port1>6379</project.redis.port1> | |
184 | - <conf.manage.domain>http://manage.zandeapp.com/</conf.manage.domain> | |
185 | - <project.sys.env>auth/b2c.json</project.sys.env> | |
186 | - <project.index.path>http://manage.zandeapp.com/welcome.do</project.index.path> | |
187 | - | |
188 | - <!-- 网站域名地址 --> | |
189 | - <project.domain.localPath>http://manage.zandeapp.com</project.domain.localPath> | |
190 | - <!-- 静态资源地址 --> | |
191 | - <project.assets.path>http://static.zandeapp.com/static/common</project.assets.path> | |
192 | - <conf.manage.userLimitOne>false</conf.manage.userLimitOne> | |
193 | - | |
194 | - | |
195 | - <!-- 数据库连接池配置文件 --> | |
196 | - <db.dbpool.jdbc.url>jdbc:mysql://10.28.6.55:3307/agriez_manage?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true</db.dbpool.jdbc.url> | |
197 | - <db.dbpool.jdbc.username>root</db.dbpool.jdbc.username> | |
198 | - <db.dbpool.jdbc.password>123456</db.dbpool.jdbc.password> | |
199 | - </properties> | |
200 | - </profile> | |
201 | 177 | </profiles> |
202 | 178 | </project> | ... | ... |
diligrp-manage-web/src/main/resources/manage.properties
... | ... | @@ -15,8 +15,8 @@ mange.spider=${conf.manage.spider} |
15 | 15 | |
16 | 16 | |
17 | 17 | # redis |
18 | -redis.host1=${project.redis.host1} | |
19 | -redis.port1=${project.redis.port1} | |
18 | +redis.host1=${redis.host} | |
19 | +redis.port1=${redis.port} | |
20 | 20 | reids.maxIdle=500 |
21 | 21 | redis.maxWaitMillis=1000 |
22 | 22 | redis.testOnBorrow=true |
23 | 23 | \ No newline at end of file | ... | ... |