์ „์ฒด ๊ธ€ 402

[Eclipse] Name for argument of type [java.lang.String] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.

[ ์—๋Ÿฌ ๋ฐœ์ƒ ์ƒํ™ฉ ] ์ฝ”๋“œ์—๋Š” ๋ฌธ์ œ๊ฐ€ ์—†๋Š”๋ฐ APIํ˜ธ์ถœ์‹œ ์—๋Ÿฌ ๋ฐœ์ƒjava.lang.IllegalArgumentException:Name for argument of type [java.lang.String] not specified,and parameter name information not available via reflection.Ensure that the compiler uses the '-parameters' flag.  [ Solution ] ๊ตฌ๊ธ€๋ง ํ•ด๋ณด๋ฉด ์Šคํ”„๋ง๋ถ€ํŠธ3.2๋ถ€ํ„ฐ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ฒผ๊ณ @RequestParam @PathVariable, @Autowired, @ConfigurationProperties๋ฅผ ์ฃผ๋กœ ์‚ฌ์šฉํ• ๋•Œ ๋ฐœ์ƒ๋œ๋‹ค๊ณ  ํ•œ๋‹คํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ๊ฐ™์€ ๋งค๊ฐœ๋ณ€์ˆ˜๋ช…์— ์ž๋™๋งคํ•‘ ์‹œ์ผœ์ฃผ๋Š”๊ฒƒ์ด ๋ฌธ..

Dev_Log 2024.11.05

[Java] 12.์ƒ์„ฑ์ž

[ ์ƒ์„ฑ์ž ] ๊ฐ์ฒด๋ฅผ ์ดˆ๊ธฐํ™”ํ• ๋•Œ ์‚ฌ์šฉ๋˜๋ฉฐ์ƒ์„ฑ์ž์˜ ์ด๋ฆ„์€ ํด๋ž˜์Šค์™€ ๋™์ผํ•˜๋‹คpublic class ConstuctorDemo { public static void main(String[] args) { Cypher loras = new Cypher( "๋กœ๋ผ์Šค", 33, "์ŠคํŽ˜์ธ ์™•์‹ค ํ˜ธ์œ„๋Œ€" ); System.out.println( "์ด๋ฆ„ : " + loras.name + "\n๋‚˜์ด : " + loras.age + "\n์ง์—… : " + loras.job ); }}class Cypher{ String name; int age; String job; // ์ƒ์„ฑ์ž ์ •์˜ public Cypher( String name, int age, String job ) { this.na..

JavaStudy/Basic 2024.11.05

[Java] 11.์ž…๋ ฅ๊ณผ ์ถœ๋ ฅ

[ java.util.Scanner๋ฅผ ์ด์šฉํ•œ ์ž…๋ ฅ ] import java.util.Scanner;public class InputDemo { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = sc.nextInt(); System.out.println( i + "๋ฅผ ์ž…๋ ฅํ•˜์…จ์Šต๋‹ˆ๋‹ค" ); sc.close(); }}import java.util.Scanner;public class InputDemo { public static void main(String[] args) { // Scanner ๊ฐ์ฒด๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ž…๋ ฅ์„ ๋ฐ›์Œ Scanner scanne..

JavaStudy/Basic 2024.11.05

[Java] 10.๋ฉ”์†Œ๋“œ(method)

[ ๋ฉ”์†Œ๋“œ(method) ] ๋ฉ”์†Œ๋“œ๋Š” ๋ฐ˜๋ณต๋˜๋Š” ์ฝ”๋“œ๋ฅผ ์žฌ์‚ฌ์šฉํ•˜๊ธฐ์œ„ํ•ด ์ •์˜ํ• ๋•Œ ์‚ฌ์šฉ๋˜๋ฉฐjs๋กœ ๋ณด๋ฉด ํ•จ์ˆ˜๋ผ๊ณ  ์ƒ๊ฐํ•˜๋ฉด๋œ๋‹ค public static void main(String[] args)๋„ ๋ฉ”์†Œ๋“œ์— ํ•ด๋‹นํ•œ๋‹ค์ ‘๊ทผ์ œ์–ด์ž๋Š” ๋ชจ๋“  ํด๋ž˜์Šค์—์„œ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ public์ด๊ณ Java์˜ ์ ‘๊ทผ์ œ์–ด์žpublicpackage์™€ ์ƒ๊ด€์—†์ด๋ชจ๋“  ํด๋ž˜์Šค์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅprotected๊ฐ™์€ package ์˜ ๋ชจ๋“  ํด๋ž˜์Šค์™€๋‹ค๋ฅธ package ์˜์ž์‹ํด๋ž˜์Šค์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅdefault(์ƒ๋žต ๊ฐ€๋Šฅ)๊ฐ™์€ package์—์„œ๋งŒ ์ ‘๊ทผ ๊ฐ€๋Šฅprivate๊ฐ™์€ Class์•ˆ์—์„œ๋งŒ ์ ‘๊ทผ ๊ฐ€๋Šฅ๋ฆฌํ„ด๊ฐ’์ด ์—†๋Š” void๋กœ ์ •์˜๋์œผ๋ฉฐ๋ฉ”์†Œ๋“œ์˜ ์ด๋ฆ„์€ main์ด๊ณ Stringํƒ€์ž…์˜ ๋ฐฐ์—ด์„ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋ฐ›๋Š” ๋ฉ”์†Œ๋“œ ์ด๋‹ค Java์—์„œ๋Š” ํ”„๋กœ๊ทธ๋žจ์‹คํ–‰์‹œ main๋ฉ”์†Œ๋“œ๋ฅผ ์ฐพ์•„ ์‹คํ–‰ํ•˜๋„๋ก..

JavaStudy/Basic 2024.11.05

[Java] 9.๋ฐฐ์—ด

[ ๋ฐฐ์—ด์˜ ์ƒ์„ฑ ] public class DefineDemo { public static void main(String[] args) { String[] cypherGroup = { "๋กœ๋ผ์Šค", "ํœดํ†ค", "๋ฃจ์ด์Šค", "ํƒ€๋ผ" }; System.out.println( cypherGroup[0]); System.out.println( cypherGroup[1]); System.out.println( cypherGroup[2]); System.out.println( cypherGroup[3]); }}public class DefineDemo { public static void main(String[] args) { String[] cypher..

JavaStudy/Basic 2024.11.05

[Java] 8.๋ฐ˜๋ณต๋ฌธ

[ while ] while๋ฌธ์˜ ํ˜•์‹// ์กฐ๊ฑด์ด true์ด๋ฉด ์‹คํ–‰ ์˜์—ญ์˜ ์ฝ”๋“œ๋ฅผ ๋ฐ˜๋ณตํ•œ๋‹คwhile( ์กฐ๊ฑด ){ ์‹คํ–‰ ์˜์—ญ}public class WhileDemo { public static void main(String[] args) { while( true ) { System.out.println( "while statement is executed when true" ); } }}public class WhileDemo { public static void main(String[] args) { int i = 0; while( i[ for ] ||๋Š” ์ขŒ์šฐํ•ญ์ค‘์— ํ•˜๋‚˜๋ผ๋„ true๋ฉด ์ „์ฒด๊ฐ€ true๊ฐ€ ๋˜๋Š” ๋…ผ๋ฆฌ ์—ฐ์‚ฐ์ž์ด๋‹ค.or๋ผ๊ณ  ์ฝ๋Š”๋‹คfor(์ดˆ๊ธฐํ™”; ์ข…..

JavaStudy/Basic 2024.11.05

[Eclipse] org.apache.jasper.JasperException: The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application

[ ์—๋Ÿฌ ๋ฐœ์ƒ ์ƒํ™ฉ ] ์•„๋ฌด ๋ฌธ์ œ์—†์ด ์ž˜๋Œ์•„๊ฐ€๋˜ JSTL์„ ์‚ฌ์šฉ์ค‘์ธ JSPํŽ˜์ด์ง€๊ฐ€๋‹ค์Œ๋‚  ์—ด์–ด๋ณด๋ ค๊ณ  ํ•˜๋‹ˆ ๊ฐ‘์ž๊ธฐ ์•„๋ž˜ ์—๋Ÿฌ๋ฅผ ๋ฑ‰์–ด๋ƒ„๐Ÿ˜ฌorg.apache.jasper.JasperException:The absolute uri:[http://java.sun.com/jsp/jstl/core] cannot be resolvedin either web.xml or the jar files deployed with this application [ Solution ] ๊ตฌ๊ธ€๋ง ํ•ด๋ณด๋ฉด ์•„๋ž˜ ๋ฐฉ๋ฒ•๋“ค์ด ๋‚˜์˜ค๋Š”๋ฐ1. ์ดํด๋ฆฝ์Šค ์žฌ์‹œ์ž‘2. JSTL๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ณ€๊ฒฝํ•ด๋ณด๊ธฐ๋‘˜๋‹ค ํ•ด๋ด๋„ ์ฆ์ƒ์€ ๋™์ผํ–ˆ๋‹คํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ ๊ฐ„๋‹จํ–ˆ๋‹ค๊ธฐ์กดJSP์— JSTL์„ ์‚ฌ์šฉํ•˜๊ธฐ์œ„ํ•ด ์ž‘์„ฑํ•œ ์ฝ”๋“œ๊ฐ€ ์•„๋ž˜ ์ฝ”๋“œ์˜€๋Š”๋ฐ ์ด๊ฑธ ๊ทธ๋ƒฅ ์ง€์šฐ๊ณ  ์ €์žฅํ–ˆ๋‹ค๊ฐ€๋‹ค์‹œ ์ž‘์„ฑํ•˜๊ณ  ์ €์žฅํ•˜๋‹ˆ๊นŒ ..

Dev_Log 2024.11.04