본문 바로가기

upcurve631

java & spring 4 atm을 절차지향적으로 풀어보기 package work.lecture; import java.util.Scanner; public class Solution1 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int MAX = 5; // 0 1 2 3 4 int[] arId = new int[MAX]; // {0,0,0,0,0} int[] arPw = new int[MAX];// {0,0,0,0,0} int[] arMoney = new int[MAX];// {0,0,0,0,0} int[] tempIds = { 1111, 2222, 3333, 0, 0 }; int[] tempPws = { 1111, 2222, .. 2023. 1. 28.
kosta 클라우드 네이티브 애플리케이션 개발 과정 day 26 kosta 클라우드 네이티브 애플리케이션 개발 과정 day 26 html & css 마진과 패딩 마진 : 다른 컨텐츠와 결합 패딩 : 컨텐츠의 테두리를 기준으로 내부와 결합 전체 선택자로 초기 값을 지정하고 가는 방법 * { margin:0; padding:0 } .box1 { margin:10px; padding:10px; border:1px solid #666; width:300px; background-color: #FFC; } .box2 { border:1px solid #666; width:300px; background-color: #FCC; margin: 20px; padding: 20px; } 마진 값은 음수가 될 수도 있다 margin-top: -20px; border = 컨텐츠 보더 백.. 2023. 1. 27.
스프링 3.0 이상에서 query dsl 설정 javax.annotation.Entity 에러 querydsl 의존성 추가하는 부분 2.x 버전에서는 gradle 빌드시 아래와 같이 버전을 명시해주지 않아도 avax.annotation.Entity 를 찾을 수 없다는 에러가 발생하지 않는다. implementation 'com.querydsl:querydsl-jpa' implementation "com.querydsl:querydsl-core" implementation "com.querydsl:querydsl-collections" annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta" annotationProcessor "jakarta.a.. 2023. 1. 27.
mockaroo에서 데이터셋을 만들 수 있다 https://www.mockaroo.com/ 예시 -- 123 게시글 insert into article (title, content, hashtag, created_by, modified_by, created_at, modified_at) values ('Quisque ut erat.', 'Vestibulum quam sapien, varius ut, blandit non, interdum in, ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis faucibus accumsan odio. Curabitur convallis. Duis consequat dui nec nisi .. 2023. 1. 27.
인텔리j test mockMvc get 가져오는 단축키 방법 import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; 이와 같은 get 메서드를 가져올 때 @Test void test() { mvc.perform( get() ) } 여기서 get을 누르면 만 처음에 나오는데 ctrl + space -> 여기서 MockMvcRequestBuilders 를 선택한 상태에서 한 번더 option + enter -> static method만 가져올 수 있게 한다. import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; @WebMvcTest public class DataRe.. 2023. 1. 26.