Configuração de base no arquivo application.properties
schedule.jobs.cronExp= 0 0/1 * * * *
app.usuario=tempest
app.senha=tempest
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/challenge-db
spring.datasource.username=allowme
spring.datasource.password=password
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
spring.jpa.show-sql=false
spring.datasource.hikari.connectionTimeout=20000
spring.datasource.hikari.maximumPoolSize=5
spring.datasource.hikari.maximum-pool-size=10
curl --location --request POST 'http://localhost:8080/allowMe/gerarBilling' \
--header 'Authorization: Basic dGVtcGVzdDp0ZW1wZXN0' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=D1B4763CFDD44417ABBD9B1C2DC0D11D' \
--data-raw '{
"start":"2021-10-28",
"end": "2021-10-28"
}'
Executar a classe AllowmeApplicationTests.java com JUnit.
Emerson Rafael Maia Melo – [email protected].