https://account.jetbrains.com/a/4kq3p60c
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.2.xsd">
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
이래도 에러가 터졌다면
프로젝트 선택 > 오픈 모듈 셋팅즈 선택 > artifacts 선택해서 오른쪽 파일들 왼쪽으로 보내주기 (put into libraries)
UserController
: 매핑하는 거 배움
@Controller
@RequestMapping("/user")
public class UserController {
<-이걸 준 덕분에 1차 주소값을 제외하고 쓰면 됨
file>setting>file and code template
https://mybatis.org/mybatis-3/ko/index.html
xml파일 만들 때 필요
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="#[[$END$]]#">
</mapper>
이 내용
꼭 있어야 함!
컨트롤러는 매핑 담당!
서비스가 로직 담당!
오냐
^^