Spring Annotation
정의
종류
@RequestMapping
- vlaue : 요청받을 URL 설정
- method : 어떤 요청으로 받을지 정의 (GET, POST, PUT, DELETE등)
@RestController public class MainController { @RequestMapping(value = "/main", method = RequestMethod.GET) public String Main(...) { ... }
'IT개발정보 > spring and java' 카테고리의 다른 글
[error] org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: (0) | 2023.02.08 |
---|---|
Spring Framework 버젼 확인 (0) | 2023.02.08 |
클래스, 객체, 인스턴스의 개념 (0) | 2023.02.07 |
class 과 public class의 차이 (0) | 2023.02.07 |
[error] Error creating bean with name 'sqlSessionFactory' (0) | 2023.02.05 |