Java5 Name for argument of type [org.springframework.web.multipart.MultipartFile] not specified, and parameter name information not available via reflection. 해결방법 오늘은,, 이미지 업로드하는 페이지를 만들어서 내 로컬에서는 잘 작동을 했다.근데, 소스를 합치면서 팀원의 소스에서 오류가 발생했다.- 원인Name for argument of type [org.springframework.web.multipart.MultipartFile] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag파라미터 명이 명확하지 않다는 소리인데,, 구글링 하던 중 2가지 방안이 있었다. - 해결방법해결방안 1) File > Settings > Build, Excution, Deployment > Java Co.. 2024. 11. 27. 리눅스 openjdk 17 수동 설치하기 우선 내가 구축한 vm에서는 apt 명령어가 안먹어서 수동설치하기로 했다. tomcat 9 / jdk17 1. openjdk 17 다운로드 https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz 2. FileZilla Client를 이용해서 서버에 openjdk17을 업로드 3. tar.gz 파일 풀어주기 tar -zxvf openjdk-17.0.2_linux-x64_bin.tar.gz 4. jdk 경로 설정 해주기 vi /etc/profile=================#export JAVA_HOME=/usr/local/jdk1.8.0_202e.. 2024. 11. 18. MaxUploadSizeExceededException 파일크기 제한 오류 해결 방법 - 원인프로젝트에서 마이페이지에 이미지 업로드 하는 걸 구현하고 있다.하지만,, 업로드 클릭 시, MaxUploadSizeExceededException 오류가 발생했다.구글링 해보니, 파일크리 제한 오류라고 한다.Spring Boot에서 Multipart 파일 업로드를 기본적으로 지원을 하는데,기본 업로드 크기는 1MB로 설정이 되어있다. 그래서 내가 업로드 할 파일이 1MB를 초과를 해서, MaxUploadSizeExceededException 오류가 발생하는거였다. - 해결방법application.properties 파일에 아래 내용을 적어주자.spring.servlet.multipart.max-file-size=100MB //원하는 크기spring.servlet.multipart.max-requ.. 2024. 11. 15. Java for-each문 java for-each문 몰라서 전에는 for문만 주구장창 썻는데,좋은걸 배워왔다. 이제야 정리하는 for-each문!!!String[] numbers = {"one", "two", "three"}; for(int i=0; iString[] numbers = {"one", "two", "three"}; for(String number: numbers) { System.out.println(number);}//one//two//three위에 보이는 두 소스가 동일하다가독성이 좋은건 아래인듯,, 2024. 9. 4. [프로그래머스_java] 약수의 개수와 덧셈 문제두 정수 left와 right가 매개변수로 주어집니다. left부터 right까지의 모든 수들 중에서, 약수의 개수가 짝수인 수는 더하고, 약수의 개수가 홀수인 수는 뺀 수를 return 하도록 solution 함수를 완성해주세요.제한사항1 ≤ left ≤ right ≤ 1,000코드class Solution { public int solution(int left, int right) { int answer = 0; for(int i = left; i 참고다른풀이와 비교를 해보다가 새로운 발견!!class Solution { public int solution(int left, int right) { int answer = 0; .. 2024. 8. 23. 이전 1 다음