Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. server.port=${port:8082}
  2. spring.flyway.enabled=false
  3. spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
  4.  
  5. @SpringBootApplication(scanBasePackages = "br.com.b2code")
  6. @RequiredArgsConstructor(onConstructor = @__(@Autowired))
  7. public class RunAdm extends SpringBootServletInitializer implements
  8. CommandLineRunner {
  9.  
  10. public static final String URL_FRONTEND = "*";
  11.  
  12.  
  13. /**
  14. * Método main do módulo de Gestão.
  15. *
  16. * @param args argumentos de inicialização
  17. * @throws Exception uma exception genérica
  18. */
  19. public static void main(String[] args) throws Exception {
  20. SpringApplication.run(RunAdm.class, args);
  21. }
  22.  
  23. @Override
  24. protected SpringApplicationBuilder
  25. configure(SpringApplicationBuilder application) {
  26. return application.sources(RunAdm.class);
  27. }
  28.  
  29. @Override
  30. public void run(String... args) throws Exception {
  31. }
  32.  
  33. }
  34.  
  35. @Repository
  36. @RequiredArgsConstructor(onConstructor = @__(@Autowired))
  37. public class ClienteQueryRepositoryImpl implements ClienteQueryRepository {
  38.  
  39. private final @NonNull
  40. JdbcTemplate jdbc;
  41.  
  42. @Override
  43. public List<Cliente> findAll() {
  44. return jdbc.query(ClienteQuerySQL.SELECT_ALL_CLIENTE_SQL, new ClienteRowMapper());
  45. }
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement