Parameter(3)
-
springboot
springProfile application.properties 설정값에 따라 log 가 다르게 나옴 spring.profiles.active=prod #spring-profiles.active=dev banner public static void main(String[] args) { //SpringApplication.run(Boot03Banner01NobannerApplication.class, args); SpringApplication app = new SpringApplication(Boot03Banner01NobannerApplication.class); app.setBannerMode(Banner.Mode.OFF); //배너 끄기 app.run(args);//boot app 실행 } 한글..
2024.02.28 -
parameter, session
Array @RequestParam String[] array로 출력하는 방법 @RequestMapping(value = "/login", method = RequestMethod.GET) public String login() { return "loginForm"; } @RequestMapping(value = "/login", method = RequestMethod.POST) public String login(LoginDTO dto) { //System.out.println(dto.getUserid()+"\t"+ dto.getPasswd()); System.out.println(dto); return "loginForm"; } @RequestMapping(value = "/login2", meth..
2024.02.16 -
parameter
initparam/multi initparam web.xml에 경로 변경시 servlet-context.xml 자리 변경 /WEB-INF/appservlet-context.xml contextConfigLocation /WEB-INF/spring/root-context.xml org.springframework.web.context.ContextLoaderListener appServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-INF/appservlet-context.xml 1 appServlet / multi bean 생성 @Controller public class SecondController { p..
2024.02.12