我正在测试Java SE中的webservices,我发现@Resource确实可以工作,这不是只有在Container中才正确吗?还是使用CDI?为什么它也能在SE中工作!?public class Teams {
private WebServiceContext context;我正在使用Endpoint.publish("http://localhost:9876/teams", new Teams());发布
我对这种依赖注入感到困惑,如spring data redis中的示例所示: @Resource(name="redisTemplate")考虑到RedisTemplate是redisTemplate类型的bean,spring是如何从redisTemplate bean检索listOps的呢?谢谢你的帮