2. Spring 기본 문법(StartSpring)
·
Spring 코딩
덧셈 뺄셈 곱셈 나눗셈을 정의한 메소드 생성 package com.example; public class Calculator { public void addAction(int a, int b) { System.out.println("Called addAction()"); System.out.printf("%d + %d = %d\n", a, b, (a + b)); } public void subAction(int a, int b) { System.out.println("Called subAction()"); System.out.printf("%d - %d = %d\n", a, b, (a - b)); } public void multiAction(int a, int b) { System.out.println..