| | |
| | | @Autowired |
| | | private RoleManageMapper roleManageMapper; |
| | | |
| | | @Autowired |
| | | private MenuMapper menuMapper; |
| | | |
| | | @SneakyThrows |
| | | @Override |
| | | public void run(String... args) throws Exception { |
| | | public void run(String... args){ |
| | | log.info("容器生成之后执行"); |
| | | List<Class<?>> classList = MyClassUtil.getClassList("com.yuanchu.limslaboratory.controller"); |
| | | List<Map<String, String>> requestListInfo = new ArrayList<Map<String, String>>(); |
| | |
| | | .noneMatch(value2 -> value2.equals(map1.get("url"))) // 查找不同的值 |
| | | ).collect(Collectors.toList()); |
| | | if(differentMaps.size()>0){ |
| | | |
| | | int insertInterfaceList = roleManageMapper.insertInterfaceList(differentMaps); |
| | | if (insertInterfaceList>0) log.info("新增接口成功!"); |
| | | if (insertInterfaceList>0) log.info(String.valueOf(differentMaps));log.info("新增接口成功!"); |
| | | }else { |
| | | log.info("无需增加新的接口!"); |
| | | } |