Indirectly referenced from required .class files
问题 I'm getting below error in STS: The type org.springframework.core.env.EnvironmentCapable cannot be resolved. It is indirectly referenced from required .class files 回答1: This sounds like a transitive dependency issue. What this means is that your code relies on a jar or library to do something - evidently, you depend on Spring framework code. Well, all that Spring code also depends on libraries and jars. Most likely, you need to add the corerctly versioned org.springframework.core jar to your