Okay, I read some of the articles posted on this forum, and they seem to indicate that the fourth edition of Craig Walls' book Spring in Action is a good book for someone unfamiliar with Spring to read to get to know how to use Spring. So I've read chapter one, and in section 2.2.1 of chapter two it lists four sections of
Java code, namely:
and
and
and, finally
I have a "Src" directory, and a "soundsystem" directory beneath it, and all four of the files listed above are in the "soundsystem" directory. From the "Src" directory I compiled the interfact just fine, and I verified that there's a "CompactDisc.class" in directory "Bin\soundsystem". But when I try to execute "javac -d ..\Bin soundsystem\SgtPeppers.java" I get error messages:
soundsystem\SgtPeppers.java:2: error: package org.springframework.stereotype doe
s not exist
import org.springframework.stereotype.Component;
^
soundsystem\SgtPeppers.java:4: error: cannot find symbol
@Component
^
symbol: class Component
2 errors
Apparently my compiler can't find package org.springframework.stereotype. Is there something I have to do to get visibility to this package, so I can use its Component annotation?