下面的 bean 是无状态的,因此是线程安全的吗?更具体地说,我担心的是 String 数组的注入值。这会干扰 bean 的状态吗?没有权利?
public class ServiceImpl implements Service {
private static final Logger LOG = Logger.getLogger(ServiceImpl.class);
/* Injected values properties file. */
private String[] values;
@Autowired
private DAO dao;
@Transactional
@Override
public void invoke(String submissionId) {
dosomething....
}
}