SpringBoot SpringMVC integrated access controller 404 specifies the path error

Method One:
In the package path start packet class as a top path
such as a promoter based xxxApplication.java at com.cicd package
bag where the controller should then be similar com.cicd.controller

Method Two:
Adding above starting @ComponentScan annotations, annotation this scan path is specified, for example: @ComponentScan (basePackages = { "com.cicd , com.test.."}) To a plurality of different separated by commas.

Guess you like

Origin www.cnblogs.com/alanchenjh/p/12344289.html