Run spring-api-starter to get can't find symbol error

why we get a exception to run spring boot application ?

This problem (no symbol: ‘addresses’ may have to do with annotation processing and your Lombok dependency, especially if you are using a new version of Spring Boot in the pom.xml.

Look at your Lombok entry in pom.xml. Does it include a tag? If not or if the version tag is less than 1.18.40, try updating the version. 1.18.40 , can go beneath the tag if you do not currently have a version tag.

Next update Maven so that the new lombok.jar is active. Then clean and compile. If that does not work and you are using Intellij, see how to ‘invalidate cache’ and remove all caches and restart intellij.

Hope this works.

Probably gave you bad advice: I just got to where you were and got the same error. I got this error on a maven clean & compile. Using Intellij’s rebuild command the build would complete ok.

tldr: I added a setUser to User entity and maven builds ok. i think the symbol not found was the ‘setUser’ method in the User class.

Jeez…. I should have said: added setUser method to Address class….