Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: controller use composed annotation #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hxcode
Copy link

@hxcode hxcode commented Nov 15, 2021

use composed annotation maybe better for controller method level.

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its's a bad practice to use asterisk imports, please
if you use intellij: https://stackoverflow.com/questions/3348816/intellij-never-use-wildcard-imports

@vqp1928
Copy link

vqp1928 commented Nov 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants