분류 전체보기

public class Solution { public int[][] solution(int[][] arr1, int[][] arr2) { int rowSize = arr1.length; int columnSize=arr1[0].length; int[][] answer = new int[rowSize][columnSize]; for (int r = 0; r < rowSize; r++) { for(int c = 0; c < columnSize;c++){ answer[r][c] = arr1[r][c] + arr2[r][c]; } } return answer; } } int columnSize=arr1[0].length; 조금 햇갈렸던 것은 column의 사이즈를 구하는 부분이였다. 당연히 1*1, 2*2 ,..
package study.algorithms.programers.level1.비밀지도; import java.util.Arrays; public class Solution { //내코드 public String[] solution(int n, int[] arr1, int[] arr2) { String[] answer = new String[n]; Arrays.fill(answer, ""); String format = "%0"+Integer.toString(n)+"d"; for (int i = 0; i < n; i++) { String binaryString1 = String.format(format,Long.parseLong(Long.toBinaryString(arr1[i]))); String bina..
We also provide persistence technology-specific abstractions, such as JpaRepository or MongoRepository. Those interfaces extend CrudRepository and expose the capabilities of the underlying persistence technology in addition to the rather generic persistence technology-agnostic interfaces such as CrudRepository. 스프링 데이터 jpa는 JpaRepository나 MongoRepository와 같은 영속성 기술별 추상화 기술을 제공한다. 이러한 인터페이스들은 Cru..
따로 서비스를 만들지 않고 jparepostiory만을 이용해서 insert를 했는데 잘 작동해서 의구심을 갖게되었다. 관련 내용을 찾아보니 @Repository @Transactional(readOnly = true) public class SimpleJpaRepository implements JpaRepositoryImplementation { private static final String ID_MUST_NOT_BE_NULL = "The given id must not be null!"; private final JpaEntityInformation entityInformation; private final EntityManager em; private final PersistenceProvid..
desc 테이블명
compileOnly This is where you declare dependencies which are required at compile time, but not at runtime. This typically includes dependencies which are shaded when found at runtime. 런타임할때는 필요없고 컴파일때만 필요할 경우 사용한다. plugins { id 'org.springframework.boot' version '2.7.4' id 'io.spring.dependency-management' version '1.0.14.RELEASE' id 'java' } group = 'study' version = '0.0.1-SNAPSHOT' sourceComp..
새로운 프로젝트를 하다가 롬복이 적용이 안될 때가 있다. 이때 해결했던 방법을 기록하고자 한다. 1. 라이브러리에 lombok이 잘 들어가있나 확인해야한다. 왜냐하면 가끔 수동으로 입력할때 실수로 gradle입력을 잘못하여 lombok이 추가되지않았을 수 있기때문이다. annotationProcessor 'org.projectlombok:lombok' compileOnly 'org.projectlombok:lombok' 롬복은 이 두개를 모두 입력해야한다. 2. 인텔리j를 업데이트한다.
의 type 에는 submit , reset, button 이 있는데 아무것도 명시하지 않은 일 경우 submit을 작동한다.
키보드발
'분류 전체보기' 카테고리의 글 목록 (14 Page)