[5기 - 박주한] SpringBoot Part1 Weekly Mission 제출합니다.#919
Open
ParkJuhan94 wants to merge 28 commits intoprgrms-be-devcourse:mainfrom
Open
[5기 - 박주한] SpringBoot Part1 Weekly Mission 제출합니다.#919ParkJuhan94 wants to merge 28 commits intoprgrms-be-devcourse:mainfrom
ParkJuhan94 wants to merge 28 commits intoprgrms-be-devcourse:mainfrom
Conversation
feat: logger int VoucherController
hoon-space
reviewed
Oct 29, 2023
hoon-space
left a comment
There was a problem hiding this comment.
첫 과제 리뷰가 많이 늦어졌네요.
몇 가지 코멘트 남겼습니다. ~
| import java.io.IOException; | ||
|
|
||
| @SpringBootApplication | ||
| //@ComponentScan( |
Comment on lines
13
to
19
| @Override | ||
| public PropertySource<?> createPropertySource(String s, EncodedResource encodedResource) throws IOException { | ||
| var yamlPropertiesFactoryBean = new YamlPropertiesFactoryBean(); | ||
| yamlPropertiesFactoryBean.setResources(encodedResource.getResource()); | ||
|
|
||
| var properties = yamlPropertiesFactoryBean.getObject(); | ||
| return new PropertiesPropertySource(encodedResource.getResource().getFilename(), properties); |
Comment on lines
7
to
9
| public interface CustomerRepository { | ||
|
|
||
| List<Customer> readFile(String filePath); |
There was a problem hiding this comment.
Spring data 스펙에 맞춰서 네이밍하는 것이 다음 과제 진행할때 편할 것 같아요
Comment on lines
27
to
32
| private final String EXIT = "exit"; | ||
| private final String CREATE = "create"; | ||
| private final String LIST = "list"; | ||
| private final String FIXED = "fixed"; | ||
| private final String PERCENT = "percent"; | ||
| private final String BLACK = "black"; |
Comment on lines
6
to
13
| @SpringBootTest | ||
| class KdtApplicationTests { | ||
|
|
||
| @Test | ||
| void contextLoads() { | ||
| } | ||
|
|
||
| } |
Comment on lines
19
to
23
| @Controller | ||
| public class VoucherController { | ||
|
|
||
| private final InputHandler inputHandler; | ||
| private final OutputHandler outputHandler; |
There was a problem hiding this comment.
컨트롤러에 너무 로직이 많은 것 같아요.
컨트롤러는 서비스와 맵핑만 해주는게 바람직해보입니다.
| private final OutputHandler outputHandler; | ||
| private final StartMenu startMenu; | ||
| private final VoucherService voucherService; | ||
| private final CustomerController customerController; |
Comment on lines
5
to
9
| public class FixedAmountVoucherDto { | ||
| private final UUID voucherId; | ||
| private final long amount; | ||
|
|
||
| public FixedAmountVoucherDto(UUID voucherId, long amount) { |
Comment on lines
5
to
9
| public interface InputHandler { | ||
|
|
||
| String inputString() throws IOException; | ||
|
|
||
| int inputInt() throws IOException; |
Comment on lines
1
to
9
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
| <parent> | ||
| <groupId>org.springframework.boot</groupId> | ||
| <artifactId>spring-boot-starter-parent</artifactId> | ||
| <version>2.5.1</version> | ||
| <relativePath/> <!-- lookup parent from repository --> |
hoon-space
approved these changes
Nov 26, 2023
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📌 과제 설명
(기본) 바우처 관리 애플리케이션
Maven / Gradle 로 프로젝트를 실제로 구성하고 이때 Spring Boot CLI를 개발PC에 설치해서 명령어들을 사용해보고 프로젝트를 만든다. 그리고 IDE (IntelliJ)에서 실행시켜 본다.
바우처 관리 Command-line Application을 만들어본다.
적절한 로그를 기록하고
logback설정을 해서 에러는 파일로 기록된다.실행가능한
jar파일을 생성한다.(심화) 파일을 통한 데이터관리 기능과 고객 블랙 리스트 명단 관리기능
👩💻 요구 사항과 구현 내용
✅ PR 포인트 & 궁금한 점