private String destinationName = "queue.user.sync.created";
private JdbcTemplate jdbcTemplate;
public void handleMessage(String message) {
try {
UserDTO userDto = jsonMapper.fromJson(message, UserDTO.class);
Long typeId = 1L;
jdbcTemplate.update(insertPartyEntitySql, userDto.getUsername(),
userDto.getId(), typeId);
logger.info("create user : {}", message);
} catch (IOException ex) {
logger.error(ex.getMessage(), ex);
}