Skip to content

Commit 0fedd11

Browse files
normaldevejunwoomostwantedroy
authored
[김준우] sprint7 (#352)
* Start project * Create entity class and service interface * Exclude Main class * Update entity class add getter method * Implement business logic for User, Message, Channel Service * Update Message class * Add JavaApplication * Update JavaApplication * Refactor * Update Service * Refactor the service code * Refactor the service code * Add fileservice class * Add Factory interface * Update main code * Add repository interface each service * Add repository file * Add convertJson method * Add JCF, File repository * Update repository * Add custom exception * Update JCFRepository * Update JCFRepository * Update JCFService * Modify method name create * Remove setter from DTO * Repository code implementation completed * Refactor code * Update Service * Refactoring channel service * Complete repository * Add repository test code * Complete repository test code * Refactor * Complete test code * Update Validphone and password * Refactor * Update Basic Service, Repository * Start mission3 * Complete Basic requirement * Update domain time field * Complete Basic requirement * Add domain repository interface * Update code * Change code sprint3 * Refactoring UserService * Complete Channel create code * Make abstract channel class * Update BasicChannelService * Update Domain Service * Update Basic Service code * Complete JCFRepository * Complete file repository * Refactor repository code * Complete main code * Update code * Update Channel Service code * Update UserStatus code * Update code * . * Update test code * Initialize sprint mission 4 * Complete Auth, User, UserStatus Controller * Complete Channel Controller * Add UserStatus controller * Complete save binarycontent * Refactor: mentoring * User aop userstatus update * Refactor * Complete requirements * Complete Mission 4 * Complete Swagger API Document * Add static file * Update Controller * Update controller * Refactor : BinaryContentController * Update ErrorHandler * ModelMapper 빈등록, 전역 예외 처리 메서드 추가 * 기존 데이터 저장했던 파일 삭제하고 jpa, postqresql 연동 설정 완료 * 레포지토리 구현체 JCF, FILE 삭제 * BaseEntity 클래스 만들어서 createdAt, updatedAt 공통 필드 생성, Entity로 변환 * Entity 수정->Message, BinaryContent 매핑 * Entity JPA 관련 어노테이션 삭제 -> 필드 재설정 * repository에 JPA 적용 -> 쿼리메소드 작성 X * Entity 매핑 설정 -> 아직 column 설정은 안 함 * Entity 매핑 정보 처리 완료 * Repository JPA 도입 완료 -> 쿼리 메소드 사용 X * Repository 설정 완료 * 요구사항에 맞게 DTO 작성 완료 * Service 계층 코드 리펙토링 중 -> Message, BinaryContent 남음 * Service 구현체 수정 완료 * Repository Query 수정 * Controller 요구 사항 반영 완료 * 기본 요구사항 구현 완료 * 기본 요구사항 구현 완료 * ♻️ 코드 리팩토링 * 베이스 코드로 변경 * 베이스코드로 변경 * ♻️ 개발, 운영 환경에 대한 프로파일 구성 * ♻️ 개발, 운영 환경에 대한 프로파일 구성 + 로깅 설정 파일 구성 * ♻️ Service 계층에 로그 설정 완료 * ♻️ 유효성 검사 코드 작성 완료 * ✨ 단위테스트 및 슬라이스 테스트 작성 완료 * ✨ 통합 테스트 작성 완료 * ✨ 심화 요구사항 - MDC를 활용한 로깅 고도화 완료 - Admin을 활용한 메트릭 가시화 완료 - 테스트 커버리지 관리 설정 및 확인 완료 * ♻️ 커스텀 예외 수정 - 예외 필드 수정 - DiscodeitException을 상속하는 주요 도메인 별 메인 예외 클래스 정의 완료 - 도메인 메인 예외 클래스를 상속하는 구체적인 예외 클래스 정의 완료 - 기존 구현한 예외를 커스텀 예외로 대체 완료 * ♻️ RequestDTO에 제약 조건 관련 어노테이션 수정 * ♻️ 레포지토리, 서비스, 컨트롤러 단위 테스트 작성 완료 -> 통합 테스트 작성 못함 * ♻️ 커밋 템플릿 테스트 * ✅ Git Action 자동 테스트 확인 * ✅ 자동 테스트 구동되는지 확인 * ✅ 커밋 테스트 # [타입] 커밋 제목 (한 줄 요약) * ♻️ 자동 테스트 확인 * ci test * Delete github workflows --------- Co-authored-by: junwoo <[email protected]> Co-authored-by: Suhyun Bae <[email protected]>
1 parent d65d70e commit 0fedd11

File tree

143 files changed

+117652
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+117652
-21
lines changed

.github/pull-request-template.md

-20
This file was deleted.

.gitignore

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
.gradle
2+
build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
!**/src/main/**/build/
5+
!**/src/test/**/build/
6+
7+
### IntelliJ IDEA ###
8+
.idea
9+
*.iws
10+
*.iml
11+
*.ipr
12+
out/
13+
!**/src/main/**/out/
14+
!**/src/test/**/out/
15+
16+
# .gitignore
17+
.env
18+
.env.*
19+
20+
21+
### Eclipse ###
22+
.apt_generated
23+
.classpath
24+
.factorypath
25+
.project
26+
.settings
27+
.springBeans
28+
.sts4-cache
29+
bin/
30+
!**/src/main/**/bin/
31+
!**/src/test/**/bin/
32+
33+
### NetBeans ###
34+
/nbproject/private/
35+
/nbbuild/
36+
/dist/
37+
/nbdist/
38+
/.nb-gradle/
39+
40+
### VS Code ###
41+
.vscode/
42+
43+
### Mac OS ###
44+
.DS_Store
45+
46+
### Discodeit ###
47+
.discodeit
48+
49+
### 숨김 파일 ###
50+
.*
51+
!.gitignore
52+
!.github/

.gitmessage.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# [타입] 커밋 제목 (한 줄 요약)
2+
# 예: feat: 사용자 로그인 기능 추가
3+
4+
# 본문 (무엇을, 왜 했는지)
5+
# - 변경한 이유
6+
# - 고려한 사항
7+
8+
# 이슈 번호 (있다면)
9+
# Related issue: #123

.logs/latest.log

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
25-04-06 00:05:45.044 [background-preinit] INFO org.hibernate.validator.internal.util.Version [ | | ] - HV000001: Hibernate Validator 8.0.1.Final
2+
25-04-06 00:05:45.450 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Starting MessageControllerTest using Java 17.0.14 with PID 25324 (started by junwo in C:\Users\junwo\IdeaProjects\1-sprint-mission)
3+
25-04-06 00:05:45.455 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - The following 1 profile is active: "dev"
4+
25-04-06 00:05:54.054 [Test worker] INFO org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping [ | | ] - Adding welcome page: class path resource [static/index.html]
5+
25-04-06 00:05:55.942 [Test worker] INFO org.springframework.boot.test.mock.web.SpringBootMockServletContext [ | | ] - Initializing Spring TestDispatcherServlet ''
6+
25-04-06 00:05:55.945 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Initializing Servlet ''
7+
25-04-06 00:05:55.950 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Completed initialization in 4 ms
8+
25-04-06 00:05:56.082 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Started MessageControllerTest in 14.304 seconds (process running for 18.155)
9+
25-04-06 00:08:30.356 [background-preinit] INFO org.hibernate.validator.internal.util.Version [ | | ] - HV000001: Hibernate Validator 8.0.1.Final
10+
25-04-06 00:08:30.762 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Starting MessageControllerTest using Java 17.0.14 with PID 7016 (started by junwo in C:\Users\junwo\IdeaProjects\1-sprint-mission)
11+
25-04-06 00:08:30.766 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - The following 1 profile is active: "dev"
12+
25-04-06 00:08:39.592 [Test worker] INFO org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping [ | | ] - Adding welcome page: class path resource [static/index.html]
13+
25-04-06 00:08:41.221 [Test worker] INFO org.springframework.boot.test.mock.web.SpringBootMockServletContext [ | | ] - Initializing Spring TestDispatcherServlet ''
14+
25-04-06 00:08:41.222 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Initializing Servlet ''
15+
25-04-06 00:08:41.226 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Completed initialization in 4 ms
16+
25-04-06 00:08:41.358 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Started MessageControllerTest in 14.393 seconds (process running for 18.743)
17+
25-04-06 00:09:04.230 [background-preinit] INFO org.hibernate.validator.internal.util.Version [ | | ] - HV000001: Hibernate Validator 8.0.1.Final
18+
25-04-06 00:09:04.445 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Starting MessageControllerTest using Java 17.0.14 with PID 6012 (started by junwo in C:\Users\junwo\IdeaProjects\1-sprint-mission)
19+
25-04-06 00:09:04.447 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - The following 1 profile is active: "dev"
20+
25-04-06 00:09:11.484 [Test worker] INFO org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping [ | | ] - Adding welcome page: class path resource [static/index.html]
21+
25-04-06 00:09:13.211 [Test worker] INFO org.springframework.boot.test.mock.web.SpringBootMockServletContext [ | | ] - Initializing Spring TestDispatcherServlet ''
22+
25-04-06 00:09:13.213 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Initializing Servlet ''
23+
25-04-06 00:09:13.219 [Test worker] INFO org.springframework.test.web.servlet.TestDispatcherServlet [ | | ] - Completed initialization in 6 ms
24+
25-04-06 00:09:13.397 [Test worker] INFO com.sprint.mission.discodeit.controller.MessageControllerTest [ | | ] - Started MessageControllerTest in 11.994 seconds (process running for 16.197)

.logs/logfile-2025-03-27.log

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
25-03-27 18:39:54.558 [SpringApplicationShutdownHook] INFO org.springframework.boot.web.embedded.tomcat.GracefulShutdown - Commencing graceful shutdown. Waiting for active requests to complete
2+
25-03-27 18:39:54.813 [tomcat-shutdown] INFO org.springframework.boot.web.embedded.tomcat.GracefulShutdown - Graceful shutdown complete
3+
25-03-27 18:39:54.818 [SpringApplicationShutdownHook] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
4+
25-03-27 18:39:54.820 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
5+
25-03-27 18:39:54.822 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
6+
25-03-27 18:39:57.526 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 8.0.1.Final
7+
25-03-27 18:39:57.591 [main] INFO com.sprint.mission.discodeit.DiscodeitApplication - Starting DiscodeitApplication using Java 17.0.14 with PID 9360 (C:\Users\junwo\IdeaProjects\1-sprint-mission\build\classes\java\main started by junwo in C:\Users\junwo\IdeaProjects\1-sprint-mission)
8+
25-03-27 18:39:57.592 [main] INFO com.sprint.mission.discodeit.DiscodeitApplication - The following 1 profile is active: "dev"
9+
25-03-27 18:39:58.561 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate - Bootstrapping Spring Data JPA repositories in DEFAULT mode.
10+
25-03-27 18:39:58.650 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 77 ms. Found 6 JPA repository interfaces.
11+
25-03-27 18:39:59.285 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port 8081 (http)
12+
25-03-27 18:39:59.313 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8081"]
13+
25-03-27 18:39:59.316 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
14+
25-03-27 18:39:59.316 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.33]
15+
25-03-27 18:39:59.392 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
16+
25-03-27 18:39:59.393 [main] INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 1755 ms
17+
25-03-27 18:39:59.425 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
18+
25-03-27 18:39:59.638 [main] INFO com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:testdb user=SA
19+
25-03-27 18:39:59.640 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
20+
25-03-27 18:39:59.650 [main] INFO org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration - H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:testdb'
21+
25-03-27 18:39:59.834 [main] INFO org.hibernate.jpa.internal.util.LogHelper - HHH000204: Processing PersistenceUnitInfo [name: default]
22+
25-03-27 18:39:59.904 [main] INFO org.hibernate.Version - HHH000412: Hibernate ORM core version 6.6.2.Final
23+
25-03-27 18:39:59.945 [main] INFO org.hibernate.cache.internal.RegionFactoryInitiator - HHH000026: Second-level cache disabled
24+
25-03-27 18:40:00.250 [main] INFO org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo - No LoadTimeWeaver setup: ignoring JPA class transformer
25+
25-03-27 18:40:00.331 [main] INFO org.hibernate.orm.connections.pooling - HHH10001005: Database info:
26+
Database JDBC URL [Connecting through datasource 'HikariDataSource (HikariPool-1)']
27+
Database driver: undefined/unknown
28+
Database version: 2.3.232
29+
Autocommit mode: undefined/unknown
30+
Isolation level: undefined/unknown
31+
Minimum pool size: undefined/unknown
32+
Maximum pool size: undefined/unknown
33+
25-03-27 18:40:01.513 [main] INFO org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator - HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
34+
25-03-27 18:40:01.565 [main] DEBUG org.hibernate.SQL -
35+
alter table if exists read_statuses
36+
drop constraint if exists UKqttel343c4eq691kcxipoixr7
37+
25-03-27 18:40:01.566 [main] DEBUG org.hibernate.SQL -
38+
alter table if exists read_statuses
39+
add constraint UKqttel343c4eq691kcxipoixr7 unique (user_id, channel_id)
40+
25-03-27 18:40:01.572 [main] DEBUG org.hibernate.SQL -
41+
alter table if exists message_attachments
42+
add constraint FKj7twd218e2gqw9cmlhwvo1rth
43+
foreign key (message_id)
44+
references messages
45+
25-03-27 18:40:01.582 [main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default'
46+
25-03-27 18:40:01.908 [main] INFO org.springframework.data.jpa.repository.query.QueryEnhancerFactory - Hibernate is in classpath; If applicable, HQL parser will be used.
47+
25-03-27 18:40:02.596 [main] INFO org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping - Adding welcome page: class path resource [static/index.html]
48+
25-03-27 18:40:03.051 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8081"]
49+
25-03-27 18:40:03.072 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port 8081 (http) with context path '/'
50+
25-03-27 18:40:03.083 [main] INFO com.sprint.mission.discodeit.DiscodeitApplication - Started DiscodeitApplication in 6.209 seconds (process running for 6.892)
51+
25-03-27 18:42:35.191 [http-nio-8081-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring DispatcherServlet 'dispatcherServlet'
52+
25-03-27 18:42:35.192 [http-nio-8081-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
53+
25-03-27 18:42:35.197 [http-nio-8081-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 4 ms
54+
25-03-27 19:59:22.162 [HikariPool-1 housekeeper] WARN com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=58m52s69ms170µs200ns).
55+
25-03-27 21:48:38.094 [HikariPool-1 housekeeper] WARN com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=1h48m11s842ms998µs900ns).
56+
25-03-27 21:57:24.070 [SpringApplicationShutdownHook] INFO org.springframework.boot.web.embedded.tomcat.GracefulShutdown - Commencing graceful shutdown. Waiting for active requests to complete
57+
25-03-27 21:57:24.377 [tomcat-shutdown] INFO org.springframework.boot.web.embedded.tomcat.GracefulShutdown - Graceful shutdown complete
58+
25-03-27 21:57:24.390 [SpringApplicationShutdownHook] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'default'
59+
25-03-27 21:57:24.404 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
60+
25-03-27 21:57:24.410 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.

0 commit comments

Comments
 (0)