본문 바로가기

전체 글

(300)
Spring에서 트랜잭션 설정 방법 DB를 다루기 위해서 필수적인 개념인 트랜잭션을 공부하고 있다. 1. 선언전 트랜잭션 XML + aop pointcut을 사용해서 설정하기 aop pointcut으로 선언할 경우 아래와 같이 적용할 pointcut 범위 지정 * com.sample..*Service.*(..) : 모든 접근제한자의 com 패키지 밑의 sample 패키지 밑의 ~Service로 끝나는 몯느 클래스 밑의 모든(*) 메서드 advice설정에 메소드 별로 제약 및 옵션을 걸 수 있음 get* : get으로 시작하는 모든 메소드 select* : select로 시작하는 모든 메소드 insert*, update*, delete* : ..로 시작하는 모든 메소드 read-only = true : insert/update/delete ..
[백준알고리즘] 4153번 직각삼각형 (JAVA) 문제 과거 이집트인들은 각 변들의 길이가 3, 4, 5인 삼각형이 직각 삼각형인것을 알아냈다. 주어진 세변의 길이로 삼각형이 직각인지 아닌지 구분하시오. 입력 입력은 여러개의 테스트케이스로 주어지며 마지막줄에는 0 0 0이 입력된다. 각 테스트케이스는 모두 30,000보다 작은 양의 정수로 주어지며, 각 입력은 변의 길이를 의미한다. 출력 각 입력에 대해 직각 삼각형이 맞다면 "right", 아니라면 "wrong"을 출력한다. 풀이 import java.util.*; import java.lang.*; import java.io.*; public class Main{ public static void main (String[] args) throws java.lang.Exception{ Scanner s..
[English] #6 3주차 과제 I ate all-vegetables dinner this week. Eating out everyday had made me so bloated. So, I bought a cabbage, mushroom, bok choy, bean sprouts, and dallae in season. I wated to taste dalle sauce. I'll describe how to make bean sprout rice. First, put two cups of rice into the rice cooker. And then, rinse the rice with water 2~3 times. Pt the water should over the back of your hand when you rest you..
[백준알고리즘] 3009번 네 번째 점 (JAVA) 문제 세 점이 주어졌을 때, 축에 평행한 직사각형을 만들기 위해서 필요한 네 번째 점을 찾는 프로그램을 작성하시오. 입력 세 점의 좌표가 한 줄에 하나씩 주어진다. 좌표는 1보다 크거나 같고, 1000보다 작거나 같은 정수이다. 출력 직사각형의 네 번째 점의 좌표를 출력한다. 예제 풀이 import java.util.*; import java.lang.*; import java.io.*; public class Main{ public static void main (String[] args) throws java.lang.Exception{ Scanner sc = new Scanner(System.in); int[] arr1 = {sc.nextInt(),sc.nextInt()}; int[] arr2 = ..