PersonUtility
を定義できます @component
を追加するSpringBeanとしてのクラス クラスの上。
次に、BusinessRowMapper
のフィールドを自動配線できます
@Component
public class BusinessRowMapper implements RowMapper<PersonDetails> {
@Autowired
private PersonUtility utils;
...
}