SpringBootServletInitializer
import org.springframework.boot.web.support.SpringBootServletInitializer;
↓
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
ErrorController
import org.springframework.boot.autoconfigure.web.ErrorController;
↓
import org.springframework.boot.web.servlet.error.ErrorController;
NotEmpty
import org.hibernate.validator.constraints.NotEmpty;
↓
import javax.validation.constraints.Notempty;
hibernate validator のアノテーションが非推奨になったのでその影響で変更しています。
参考リンク
anyObject() → any()
import static org.mockito.Matchers.anyObject;
↓
import static org.mockito.ArgumentMatchers.any;
anyObject が非推奨になりました。
代わりに使用するのは any() です。
コメント