Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aceite-tecnico-backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Renan de Jesus Montenegro da Silva
aceite-tecnico-backend
Commits
f1bc34f3
Commit
f1bc34f3
authored
May 05, 2025
by
RenanMontenegro3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat"adição do arquivo .env"
parent
33755e52
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
66 deletions
+65
-66
.env
.env
+32
-0
application.properties
src/main/resources/application.properties
+33
-66
No files found.
.env
0 → 100644
View file @
f1bc34f3
DB_DRIVER_CLASS_NAME=com.mysql.cj.jdbc.Driver
DB_PLATFORM=org.hibernate.dialect.MySQL8Dialect
DB_URL=jdbc:mysql://host.docker.internal:3306/porto?createDatabaseIfNotExist=true&serverTimezone=UTC
DB_USERNAME=root
DB_PASSWORD=root
SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE=2GB
SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE=2GB
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=pauloacb2020@gmail.com
MAIL_PASSWORD=ehyn ryqu utgv ntjd
MAIL_SMTP_AUTH=true
MAIL_SMTP_STARTTLS_ENABLE=true
JPA_SHOW_SQL=true
JPA_MERGE_ENTITY_COPY_OBSERVER=allow
JPA_HIBERNATE_DDL_AUTO=update
JPA_HIBERNATE_FORMAT_SQL=true
PAGEABLE_ONE_INDEXED_PARAMETERS=true
PAGEABLE_DEFAULT_PAGE_SIZE=2
PAGEABLE_MAX_PAGE_SIZE=20
JWT_ACCESS_SECRET=b9048bb98d808d82bf7250333035db0ea7ada419a53153ec550fcf3dd6d51b13
JWT_ACCESS_EXPIRES_IN=3600
JWT_REFRESH_SECRET=5893d555ee0b886b14929d630c2027b912c104ca29295bf9fd126666baf5bff1
JWT_REFRESH_EXPIRES_IN=7200
DISCO_RAIZ=C:\\fotos-java
DISCO_DIRETORIO_FOTOS=contato-disco
src/main/resources/application.properties
View file @
f1bc34f3
# Datasource configuration
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.jpa.database-platform
=
org.hibernate.dialect.MySQL8Dialect
#Great
spring.datasource.url
=
jdbc:mysql://host.docker.internal:3306/porto?createDatabaseIfNotExist=true&serverTimezone=UTC
#spring.datasource.url=jdbc:mysql://localhost:3306/porto
spring.datasource.username
=
root
spring.datasource.password
=
root
#Alien
#spring.datasource.url=jdbc:mysql://localhost:3306/porto
#spring.datasource.url=jdbc:mysql://localhost:3306/portem
#Laps
#spring.datasource.url=jdbc:mysql://localhost:3306/twjobs
#spring.datasource.username=root
#spring.datasource.password=Pasq2024@
#spring.datasource.password=root
spring.servlet.multipart.max-file-size
=
2GB
spring.servlet.multipart.max-request-size
=
2GB
#Email
spring.mail.host
=
smtp.gmail.com
spring.mail.port
=
587
spring.mail.username
=
pauloacb2020@gmail.com
spring.mail.password
=
ehyn ryqu utgv ntjd
spring.mail.properties.mail.smtp.auth
=
true
spring.mail.properties.mail.smtp.starttls.enable
=
true
# JPA configuration
spring.jpa.show-sql
=
true
spring.jpa.properties.hibernate.event.merge.entity_copy_observer
=
allow
# Hibernate configuration
spring.jpa.hibernate.ddl-auto
=
update
#spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.properties.hibernate.format_sql
=
true
# Pagination configuration
spring.data.web.pageable.one-indexed-parameters
=
true
spring.data.web.pageable.default-page-size
=
2
#tamanho m�ximo de pagina��o pra todo sistema
spring.data.web.pageable.max-page-size
=
20
# spring.data.web.pageable.page-parameter=pagina
# spring.data.web.pageable.size-parameter=tamanho
br.com.treinaweb.twjobs.jwt.accessSecret
=
b9048bb98d808d82bf7250333035db0ea7ada419a53153ec550fcf3dd6d51b13
br.com.treinaweb.twjobs.jwt.accessExpiresIn
=
3600
br.com.treinaweb.twjobs.jwt.refreshSecret
=
5893d555ee0b886b14929d630c2027b912c104ca29295bf9fd126666baf5bff1
br.com.treinaweb.twjobs.jwt.refreshExpiresIn
=
7200
contato.disco.raiz
=
C:
\\
fotos-java
contato.disco.diretorio-fotos
=
contato-disco
\ No newline at end of file
spring.datasource.driver-class-name
=
${DB_DRIVER_CLASS_NAME}
spring.jpa.database-platform
=
${DB_PLATFORM}
spring.datasource.url
=
${DB_URL}
spring.datasource.username
=
${DB_USERNAME}
spring.datasource.password
=
${DB_PASSWORD}
spring.servlet.multipart.max-file-size
=
${SPRING_SERVLET_MULTIPART_MAX_FILE_SIZE}
spring.servlet.multipart.max-request-size
=
${SPRING_SERVLET_MULTIPART_MAX_REQUEST_SIZE}
spring.mail.host
=
${MAIL_HOST}
spring.mail.port
=
${MAIL_PORT}
spring.mail.username
=
${MAIL_USERNAME}
spring.mail.password
=
${MAIL_PASSWORD}
spring.mail.properties.mail.smtp.auth
=
${MAIL_SMTP_AUTH}
spring.mail.properties.mail.smtp.starttls.enable
=
${MAIL_SMTP_STARTTLS_ENABLE}
spring.jpa.show-sql
=
${JPA_SHOW_SQL}
spring.jpa.properties.hibernate.event.merge.entity_copy_observer
=
${JPA_MERGE_ENTITY_COPY_OBSERVER}
spring.jpa.hibernate.ddl-auto
=
${JPA_HIBERNATE_DDL_AUTO}
spring.jpa.properties.hibernate.format_sql
=
${JPA_HIBERNATE_FORMAT_SQL}
spring.data.web.pageable.one-indexed-parameters
=
${PAGEABLE_ONE_INDEXED_PARAMETERS}
spring.data.web.pageable.default-page-size
=
${PAGEABLE_DEFAULT_PAGE_SIZE}
spring.data.web.pageable.max-page-size
=
${PAGEABLE_MAX_PAGE_SIZE}
br.com.treinaweb.twjobs.jwt.accessSecret
=
${JWT_ACCESS_SECRET}
br.com.treinaweb.twjobs.jwt.accessExpiresIn
=
${JWT_ACCESS_EXPIRES_IN}
br.com.treinaweb.twjobs.jwt.refreshSecret
=
${JWT_REFRESH_SECRET}
br.com.treinaweb.twjobs.jwt.refreshExpiresIn
=
${JWT_REFRESH_EXPIRES_IN}
contato.disco.raiz
=
${DISCO_RAIZ}
contato.disco.diretorio-fotos
=
${DISCO_DIRETORIO_FOTOS}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment