我正在看看我在工作区中的一些旧例子。我看不到 自动装配是如何完成的,因为没有@Autowired。 Spring引导+ Facebook默认配置。Autowire without annotation @Autowired
@Controller
@RequestMapping("/")
public class HelloController {
private Facebook facebook;
private ConnectionRepository connectionRepository;
public HelloController(Facebook facebook, ConnectionRepository connectionRepository) {
this.facebook = facebook;
this.connectionRepository = connectionRepository;
}
@GetMapping
public String helloFacebook(Model model) {
System.out.println("we are here!!!");
if (connectionRepository.findPrimaryConnection(Facebook.class) == null) {
return "redirect:/connect/facebook";
}
PagedList<Post> feed = facebook.feedOperations().getFeed();
model.addAttribute("feed", feed);
return "hello";
}
}
它可以完美的,但如何把这些豆子自动装配自己没有@Autowired? 它们是作为字段还是构造函数自动装配的?
您订阅的所有用户到亚马逊SNS主题,或者你将消息发送到个人用户(不使用主题)? –
个人用户 – strash
“亚马逊继续发送通知”是什么意思?他们是从你的应用程序通知吗?他们如何被发送到SNS?或者你在谈论重试?请修改您的问题以提供更多信息,以便我们为您提供帮助。 –