07 2022 档案
摘要:首先先配置这几个类和注解 DataSource注解,用来辨别方法上是否有此注解,有的话就切库 @Target({ElementType.METHOD,ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented public @
阅读全文
摘要:这样遍历筛选,会遍历不到5这个元素。调用remove方法数组的 下标就会往前移动,i 再加 就会跳过5这个元素了。 只需要在找到要删除的元素后进行i-- 即可。
阅读全文
摘要:public String processingPictures(MultipartFile file, HttpServletRequest request) throws Exception { String userId = request.getParameter("userId"); St
阅读全文
摘要:@Aspect @Order(5) @Component @Slf4j public class ControllerLogAspect { private final ThreadLocal<Long> STARTTIME_THREADLOCAL = new NamedThreadLocal<Lo
阅读全文