Replaced @RequestMapping annotation with shortcut annotation for requested HTTP Method

This commit is contained in:
pixeebot[bot] 2025-06-19 10:40:42 +00:00 committed by GitHub
parent 45e18b2611
commit 49bb67fc62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,13 +3,12 @@ package stirling.software.common.annotations;
import java.lang.annotation.*; import java.lang.annotation.*;
import org.springframework.core.annotation.AliasFor; import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Documented @Documented
@RequestMapping(method = RequestMethod.POST) @PostMapping
public @interface AutoJobPostMapping { public @interface AutoJobPostMapping {
@AliasFor(annotation = RequestMapping.class, attribute = "value") @AliasFor(annotation = RequestMapping.class, attribute = "value")
String[] value() default {}; String[] value() default {};