programmer group

java annotations are easy to use

java annotations are easy to use Annotations have been used throughout the development process, and today I finally want to look at the implementation of annotations.Drive directly // Custom Notes // Annotation has been implemented here // Note that comments are only valid in the form of reflection calls @Retention(value = RetentionPolicy.RUNTIME) @Target(value = {ElementType.METHOD,ElementType.FIELD}) public @interface InterfaceTest...

programmer group

Common knowledge accumulation of spring boot development

Article catalog SpringBoot get Request and Response Transaction uses @ Transactional AOP development process SpringBoot get Request and Response Through static method acquisition, you can also encapsulate a static method public String test() { ServletRequestAttributes attributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes(); HttpServletRequest request = attributes.getRequest(); HttpServletResponse...