我使用自动配置属性运行spring boot。我比较'emailService' 对象是否相同,我得到相同的一个对象。这意味着@Scope("prototype") 与@Service 无法按预期工作。
確定! 回上一頁