Puoi definire PersonUtility
class as spring bean aggiungendo @component
sopra la classe.
Quindi puoi collegare automaticamente il campo in BusinessRowMapper
@Component
public class BusinessRowMapper implements RowMapper<PersonDetails> {
@Autowired
private PersonUtility utils;
...
}