About SpringBoot start error

Caused by: java.lang.NoClassDefFoundError: com/sun/tools/javac/util/List at

Start Springboot when this error, but run locally jar package was not being given
this situation is likely to introduce a com / sun / tools / javac / util / List, originally intended to introduce com / util / List
on these two difference com / sun / tools / javac / util / List is a third-party packages may introduce, but com / util / List is built package, the two can not be mixed

If the idea of ​​automatic import every package default always sun / tool / javac / util / List

This situation can change my
open Settings-> editor-> general-> Auto Import to Exclude from import and Completion inside the box to remove the package on the line
if the MAC computer, the path is / IntelliJ IDEA / preference / editor / general / Auto Import

Guess you like

Origin www.cnblogs.com/fourous/p/11386925.html