
1. FirstServlet.java import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FirstServlet extends HttpServlet { @Override public void init() throws ServletException{ System.out.println("메시지 호출"); } @Override public void doGet(HttpServletReque..
ArrayList The ArrayList class is a resizable array, which can be found in the java.util package. Add Items The ArrayList class has many useful methods. To add elements to the ArrayList, use the add() method: import java.util.ArrayList; public class Main { public static void main(String[] args) { ArrayList people = new ArrayList(); people.add("Mom"); people.add("Dad"); people.add("Sister"); Syste..

Problem When I run go live with my code in VScode, a direcrory listing appears. Cause The directory listing displays because there is no index file in the directory. The server looks for an index file (like index.html or index.php) to load as the default page when you visit the server's URL. Without an index file, the server will display a directory listing to show what files are available. Also..

Problem Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. [2m2023-11-04T10:37:51.317+09:00[0;39m [31mERROR[0;39m [35m27805[0;39m [2m---[0;39m [2m[ main][0;39m [36mo.s.b.d.LoggingFailureAnalysisReporter [0;39m [2m:[0;39m *************************** APPLICATION FAILED TO START *************************** Description: Web ser..

Problem Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Cause 스프링 부트 auto-configuration이 클래스 패스에 추가된 디펜던시를 기반으로 빈을 자동으로 구성을 시도한다. JPA 디펜던시 클래스 패스를 갖고있기 때문에, 스프링 부트는 자동으로 JPA 데이터 구조를 구성하려하지만 스프링 부트에게 auto-congifuration을 수행할 정보를 제공하지 않았기 때문임. 예를들면 MySQL과 같은 외부 데이터 베이스..

Problem Cause method = ‘Post’ will work if I ‘post’ a from to the url/test. If I type a url in address bar of a browser and hit enter, it’s always a GET request, so I had to specify POST request. Solution Request should be made via POST. { RequestMethod.GET, RequestMethod.POST } ##EXAMPLE @RequestMapping(value = "/salvar", method = { RequestMethod.GET, RequestMethod.POST }) What I’ve Learned The..

Problem Access denied for user 'root'@'localhost' (using password: YES) If it says 'No', it means that a password was not entered. If it says 'Yes', it means that the password entered was incorrect. I am sure I entered the correct password, but the error keeps occurring. I don't know how many times I've tried. It was simply incomprehensible. [Solution1 - MySql root password Reset Master Solution..
* 본 포스팅은 개인공부를 위한 오답노트입니다. * This posting is an incorrect answer note for personal study. 최대공약수와 최소공배수 시간 제한 메모리 제한 제출 정답 맞힌 사람 정답 비율 1 초 128 MB 102100 58793 47777 57.830% 문제 두 개의 자연수를 입력받아 최대 공약수와 최소 공배수를 출력하는 프로그램을 작성하시오. 입력 첫째 줄에는 두 개의 자연수가 주어진다. 이 둘은 10,000이하의 자연수이며 사이에 한 칸의 공백이 주어진다. 출력 첫째 줄에는 입력으로 주어진 두 수의 최대공약수를, 둘째 줄에는 입력으로 주어진 두 수의 최소 공배수를 출력한다. 예제 입력 1 24 18 예제 출력 1 6 72 Result import ..
보호되어 있는 글입니다.
일정 공부 시간 영어 개발 10/23 월 3h 59m 3h 59m 10/24 화 8h 08m 8h 08m 10/25 수 6h 43m 2h 29m 4h 13m 10/26 목 1h 11m 1h 11m 10/27 금 8h 36m 8h 36m 10/28 토 9h 21m 5h 17m 4h 04m 10/29 일 3h 28m 38m 3h 09m Total 41h 48m 21h 44m 20h 04m 되돌아보기 개발 공부하면서, 영어공부만 하는 것 같지만 학원에서 6 to 9 공부를 한다. 사실 공부는 혼자하는 것이라 생각해서 예/복습이 가장 중요하고. 배운 걸 내걸로 만드는 게 가장 중요하다 생각한다. 예를들면.. 배웠는데 직접 코드를 못 짜는 것과 같은. 장기적으로 생각해서, 정말 좋은 개발자가 되려면 당장 영어점..