-
Notifications
You must be signed in to change notification settings - Fork 0
Chore: 패키지 구조 설정 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
stoneTiger0912
wants to merge
4
commits into
main
Choose a base branch
from
chore/create-package
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| package flipnote.group.domain.model; | ||
|
|
||
| public abstract class BaseEntity { | ||
| } |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| spring: | ||
| application: | ||
| name: flipnote | ||
|
|
||
| datasource: | ||
| driver-class-name: com.mysql.cj.jdbc.Driver | ||
| url: ${SPRING_DATASOURCE_URL} | ||
| username: ${SPRING_DATASOURCE_USERNAME} | ||
| password: ${SPRING_DATASOURCE_PASSWORD} | ||
|
|
||
| jpa: | ||
| open-in-view: false | ||
| hibernate: | ||
| ddl-auto: update | ||
|
|
||
| data: | ||
| redis: | ||
| host: ${SPRING_DATA_REDIS_HOST} | ||
| password: ${SPRING_DATA_REDIS_PASSWORD:} | ||
| port: ${SPRING_DATA_REDIS_PORT} | ||
|
|
||
|
|
||
| cloud: | ||
| aws: | ||
| bucket: ${S3_BUCKET_NAME} | ||
| region: ${S3_BUCKET_REGION} | ||
| credentials: | ||
| access-key: ${S3_ACCESS_KEY} | ||
| secret-key: ${S3_SECRET_KEY} | ||
| stack: | ||
| auto: false | ||
|
|
||
|
|
||
| image-clean: | ||
| batch-size: 300 | ||
| orphan-grace-minutes: 10 | ||
|
|
||
| image: | ||
| default: | ||
| user: https://flipnote-bucket.s3.ap-northeast-2.amazonaws.com/image/default/user.png | ||
| group: https://flipnote-bucket.s3.ap-northeast-2.amazonaws.com/image/default/group.png | ||
| cardSet: https://flipnote-bucket.s3.ap-northeast-2.amazonaws.com/image/default/cardset.png | ||
|
|
||
| logging: | ||
| level: | ||
| flipnote.image: DEBUG | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| spring: | ||
| datasource: | ||
| url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1 | ||
| driver-class-name: org.h2.Driver | ||
| username: sa | ||
| password: | ||
|
|
||
| jpa: | ||
| hibernate: | ||
| ddl-auto: create-drop | ||
|
|
||
| properties: | ||
| hibernate: | ||
| show_sql: true | ||
| format_sql: true | ||
| use_sql_comments: true | ||
|
|
||
| data: | ||
| redis: | ||
| host: localhost | ||
| port: 6379 | ||
|
|
||
| cloud: | ||
| aws: | ||
| region: dummy_bucket_region | ||
| credentials: | ||
| access-key: dummy_access_key | ||
| secret-key: dummy_secret_key | ||
| bucket: dummy_bucket |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Spring Boot spring.jpa.hibernate.ddl-auto production environment recommended value 2025💡 Result:
For a production Spring Boot app, the recommended approach is to disable Hibernate’s automatic schema changes and manage schema evolution with migration tools (Flyway/Liquibase).
Recommended value (most common for prod):
spring.jpa.hibernate.ddl-auto=none— Hibernate performs no schema generation/updates; Spring Boot also defaults tononefor non-embedded (“real”) databases unless you set it explicitly. [1]Sometimes used in prod for safety checks:
spring.jpa.hibernate.ddl-auto=validate— verifies the schema matches your entities at startup, but does not modify the DB. [1]Avoid in production:
update(and of coursecreate/create-drop) — Hibernate explicitly notesupdateis not suitable for production; use schema migration tools instead. [2]Sources: Spring Boot reference docs on
ddl-autovalues/defaults [1]; Hibernate best practices on schema management [2].운영 환경에서
ddl-auto: update는 위험 — 환경변수로 분리 필수운영 환경의
update설정은 의도치 않은 스키마 변경을 야기할 수 있습니다. 기본값을validate(또는none)로 설정하고, 개발 환경에서만update로 오버라이드하는 구성으로 변경하세요.권장 변경
jpa: open-in-view: false hibernate: - ddl-auto: update + ddl-auto: ${SPRING_JPA_HIBERNATE_DDL_AUTO:validate}개발 환경에서는
SPRING_JPA_HIBERNATE_DDL_AUTO=update로 설정하면 됩니다.📝 Committable suggestion
🤖 Prompt for AI Agents