Just learning spring boot is stopped for a long time cross-domain problem, finally finally copied from the Internet to the extreme before we can solve people's code.
But when a colleague the other day looking at the code and found that spring boot with annotations can be resolved.
Added to the controller
@CrossOrigin(origins = "*")
It can easily solve cross-domain problems