분류 전체보기

@Configuration @EnableWebSecurity public class SecurityConfig { //해당 메소드의 리턴되는 오브젝트를 IOC로 등록해준다. @Bean public BCryptPasswordEncoder encodePwd() { return new BCryptPasswordEncoder(); } @Bean public SecurityFilterChain configure(HttpSecurity http) throws Exception { http.csrf().disable(); http.authorizeRequests() .antMatchers("/user/**").authenticated() .antMatchers("/manager/**").access("hasRole(..
public class Solution { public boolean solution(int x) { boolean answer = true; int divideNum=0; int tmpX = x; while(tmpX!=0){ divideNum = divideNum+(tmpX%10); tmpX=tmpX/10; } if (x % divideNum != 0) { answer = false; } return answer; } } https://school.programmers.co.kr/learn/courses/30/lessons/12947 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. pr..
public class Solution { public String solution(String phone_number) { String answer = ""; int phoneLen = phone_number.length(); int showLen = 4; int hideLen = (phoneLen - 1) - showLen; for (int i = 0; i
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 테이블명
키보드발
'분류 전체보기' 카테고리의 글 목록 (13 Page)