일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Microservices
- java
- 토익
- #단축키
- docker #docker tutorial
- 2010
- #정규표현식
- #Gradle Multi project with IntelliJ
- #화면캡쳐 #macOS
- Lambda
- 년말
- 프로젝트 시작
- 분석 작업
- #Microservice
- 감사
- Spring Boot
- bootstrap
- jv
- 평가인증
- WebJar
- 방법론
- Today
- Total
목록spring boot in action (10)
사랑해 마니마니
코드 Edit 메인메소드 생성 및 실행 . 현재 포커스 실행 ⌃⇧R . 현재 포커스 메서드 실행 ⌃⇧R - directory 만들때 “/“를 쓰면 하위 디렉토리까지 만들어 줌 - psvm > public static void main method - sout > sytem.out.println 라인 수정하기 . 현재 라인 복사하기 ⌘D . 현재 라인 삭제하기 ⌘⌫ . 여러라인 합치기 ⌃⇧J . 구문내 이동 ⌘⇧↑↓ . 라인 이동 ⌥⇧↑↓ 코드 즉시보기 . 인자값 즉시보기 ⌘ + P . Method, Class 구현보기 ⌥Space . JavaDoc 미리보기 F1 포커스 포커스 에디터 . 단어별 이동 ⌥← → . 단어별 선택 ⌥⇧← → . 라인 첫/끝 이동 fn← → . 라인 전체 fn⇧← → . Pa⌄g..
Multiplication Service에 1)method 하나 추가하고 2)테스트 만들기 boolean checkAttempt(final MultiplicationResultAttempt resultAttempt); TDD에서와 같이 interface 구현 함수에 대충 만들어서 test fail 만들기 이후에 다시 정련하기^^; //MultiplicationServiceImpl.java @Override public boolean checkAttempt(MultiplicationResultAttempt resultAttempt) { return false; } 이제 기존 테스트 클래스에 새로 추가한 메소드를 테스트 해보자 @Test public void checkCorrectAttemptTest() {..
Domain 추가 - User: immutable 만들기 여기서 중요한 것은 getter로 만 접근 가능하도록 User class를 final로 만들기 package microservices.book.multiplication.domain; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.RequiredArgsConstructor; import lombok.ToString; @RequiredArgsConstructor @Getter @ToString @EqualsAndHashCode public final class User { private final String alias; protected User() { alias = nu..
요구사항 1) Multiplication: 곱셈을 하기 위해 필요한 Factor를 보관 2) User: 곱셈을 풀기로한 사용자 3) MultiplicationResultAttempt: Multiplication과 User에 대한 참조치를 가지고 있으며, 결과를 보관 immutable Multiplication class는 Immutable임 Lombok 추가하기 buildig.gradle에 Lombok dependency 추가 compileOnly('org.projectlombok:lombok') 롬복은 Annotation 기반인데 Design time에도 동작해야 개발이 수월함 그래서 IDE도 설정을 해줘야 함. 1. Lombok plugin 설치: Preferences > Plugins > Brows..
3Tier 로 고치기 RandomGeneratorService 테스트 해보기 RandomGeneratorService는 11~100까지의 난수를 생성시키는 서비스임 이 서비스 Spec을 만족하는지 체크해 보기 package microservices.book.multiplication.service; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.mock.mockito...
스프링 부트 기본 시작해 보기(microservice v1) Learn Microservices with Spring Boot (Appress) 따라서 코딩하기https://github.com/microservices-practical 도메인 만들기(Multiplication.class) package microservices.book.multiplication.domain; public class Multiplication { private int factorA; private int factorB; private int result; public Multiplication(int factorA, int factorB) { this.factorA = factorA; this.factorB = facto..
1. Bootstrap, JQuery Webjar 찾기IntelliJ를 업데이트 했더니 갑자기 SDK 세팅값이 사라져 버렸다. T.T https://www.webjars.org/에서 Bootstrap, jquery webjar찾기 (gradle 용으로)compile 'org.webjars:jquery:3.2.1'compile 'org.webjars:bootstrap:4.0.0-beta.3' 2. Bootstrap starter template에서 소스 copy하기https://getbootstrap.com/docs/4.0/getting-started/introduction/ popper.js는 Popular WebJars없으니 찾아보자[Add a WebJar] 옆의 search에서 검색하기 1.3.0 v..