| log4j.xml 먼저 log4j.xml 파일을 살펴보자."Project Name"\src\main\resources 경로에 log4j.xml 파일이 있다. 태그에는 로그를 어떻게 출력할지를 등록할 수 있다.name="console" 로 설정하고 console에 로그를 출력해보자.ConversionPattern 으로 로그를 어떻게 남길지 설정할 수도 있다.123456 Colored by Color Scriptercs 먼저 Application Loggers의 level을 설정할 수 있다.Log level은 TRACE -> DEBUG -> INFO -> WARN -> ERROR -> FATAL 순서로 이루어져 있다.> TRACE : Debug보다 좀더 상세한 정보> DEBUG : 프로그램을 디버깅하기 ..
| Templates 만들기 Web Project를 진행하면서 Logger를 자주 사용하게 되는데,매번 타이핑해주기 번거로워서 Templates에 등록해보려고 합니다! PS 할 때,BufferedReader, Stringtokenizer 같은 코드들도미리 Templates에 등록해 놓으면 아주 좋겠군! 먼저 logger 사용에 필요한 코드는import로 아래 코드가 필요하고12import org.slf4j.Logger;import org.slf4j.LoggerFactory;cs Logger 등록을 위해 아래 코드가 필요하다.1private static final Logger logger = LoggerFactory.getLogger(HomeController.class);cs 이 코드를 Templates..
#. Problemhttps://www.acmicpc.net/problem/20040* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve 간선을 하나씩 그어보면서그래프에 ..
#. Problemhttps://swexpertacademy.com/main/code/userProblem/userProblemDetail.do?contestProbId=AXUqw9zKYaoDFASe&categoryId=AXUqw9zKYaoDFASe&categoryType=CODE* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage m..
#. Problemhttps://www.acmicpc.net/problem/16398* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve 이 문제도 마찬가지로MST 기본 ..
#. Problemhttps://www.acmicpc.net/problem/4386* The copyright in this matter is in BOJ #. Resolution Process 1. Read and understand problem 2. Redefine the problem + abstract 3. Create solution plan (select Algorithm, Data structure) 4. Prove the plan (check performance time and usage memory) 5. Carry out the plan 6. Look back on the plan and find a way to improve it #. Solve MST 기본(?) 문제다.가중치가 ..
API 로 보통 JSON 파일을 response 할 수 있다.response 한 JSON 파일을 Parsing 해서 사용하는 법을 정리해보자! JSON Object 사용을 위해 JSON.simple import 가 필요하다.plugin으로 사용 시 "여기"를,jar 파일을 사용할 경우 "여기"를 참고해보면 좋을 것 같다. API Connection 방법은 아래 글을 참고해보자.[API] Java API Connection(HttpURLConnection, JSONObject) JSON Parsing 을 할 때,JSON 파일에 어떤 구조로 데이터가 저장되어있는지 먼저 잘 파악한 후,key 에 해당하는 value 를 객체에 알맞게 저장해주면 된다. .Java JSON Parsing .Example01 loc..
.API Connection API Connection을 위한 예제를 살펴보려고 한다.예제에서는 request 후 response로 JSON Object를 받는 형태이다. JSON Object 사용을 위해 JSON.simple import 가 필요하다.plugin으로 사용 시 "여기"를,jar 파일을 사용할 경우 "여기"를 참고해보면 좋을 것 같다. JSON Parser 관련 정보는 아래 글을 참고해보자![API] Java JSONParser .example01 (GET) API 정보curl -X GET {BASE_URL}/example01 -H 'Authorization: {AUTH_KEY}' -H 'Content-Type: application/json' 1234567891011121314151617..