エラー内容
全てのimport文に赤い線がかかり、以下のエラーが出力
Cannot resolve the modulepaths/classpaths automatically, please specify the value in the launch.json.
解決方法
1.Spring Boot Extension Packをアンインストール
2.VSCを再起動
3.Spring Boot Extension Packを再インストール
4.[Ctrl] + [Shift] + [p]で cleanと検索し「Clean Java Language Server Workspace」を選択
以上です。
参考サイト