Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server.port=${port:8082}
- spring.flyway.enabled=false
- spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
- @SpringBootApplication(scanBasePackages = "br.com.b2code")
- @RequiredArgsConstructor(onConstructor = @__(@Autowired))
- public class RunAdm extends SpringBootServletInitializer implements
- CommandLineRunner {
- public static final String URL_FRONTEND = "*";
- /**
- * Método main do módulo de Gestão.
- *
- * @param args argumentos de inicialização
- * @throws Exception uma exception genérica
- */
- public static void main(String[] args) throws Exception {
- SpringApplication.run(RunAdm.class, args);
- }
- @Override
- protected SpringApplicationBuilder
- configure(SpringApplicationBuilder application) {
- return application.sources(RunAdm.class);
- }
- @Override
- public void run(String... args) throws Exception {
- }
- }
- @Repository
- @RequiredArgsConstructor(onConstructor = @__(@Autowired))
- public class ClienteQueryRepositoryImpl implements ClienteQueryRepository {
- private final @NonNull
- JdbcTemplate jdbc;
- @Override
- public List<Cliente> findAll() {
- return jdbc.query(ClienteQuerySQL.SELECT_ALL_CLIENTE_SQL, new ClienteRowMapper());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement