"Spring Boot"의 두 판 사이의 차이
(새 문서: Spring Boot를 정리 한다. == 개요 == == 참고 문헌 == *Spring) |
잔글 |
||
(같은 사용자의 중간 판 8개는 보이지 않습니다) | |||
3번째 줄: | 3번째 줄: | ||
− | == | + | == Annotation == |
+ | @RequestMapping(value = "login", method = RequestMethod.GET, params = { "!error" })<br/>@RequestMapping(value = "login", method = RequestMethod.GET, params = { "error" }) | ||
− | |||
+ | @Autowired <br/> private HttpSession httpSession; | ||
+ | |||
+ | httpSession.getAttribute("projectId") | ||
+ | |||
+ | |||
+ | |||
+ | public String showLoginError(Map<String, Object> model, @RequestParam String error) { ~ }<br/><span style="color: rgb(123, 123, 123); font-family: sans-serif; font-size: 15px; letter-spacing: 0.21px;">publice String detail(@RequestParam HashMap<String, String> map)</span><br/> public String domainList(ModelMap modelMap, <br/> @RequestParam(value = "debug", defaultValue = "false", required = false) String debug) {<br/><br/> $.ajax({<br/> type: "put",<br/> url: "/api/filter/projects",<br/> data: JSON.stringify({<br/> projectId: filterProject.attr("projectId"),<br/> projectName: filterProject.attr("projectName"),<br/> projectDescription: filterProject.attr("projectDescription"),<br/> projects: [],<br/> dateId: "",<br/> startDate: "",<br/> endDate: "",<br/> dateDescription: "",<br/> dates: []<br/> }),<br/> contentType: "application/json",<br/> dataType: "json"<br/> }).done(function (data) {<br/> }); | ||
+ | |||
+ | <br/>public FilterWrap filterProjectsUpdate(@RequestBody FilterWrap filter) { | ||
+ | == 참고 문헌 == | ||
*[[Spring|Spring]] | *[[Spring|Spring]] | ||
+ | *[http://noritersand.tistory.com/474 http://noritersand.tistory.com/474] | ||
+ | *[http://javakorean.com/%EC%8A%A4%ED%94%84%EB%A7%81-%EC%96%B4%EB%85%B8%ED%85%8C%EC%9D%B4%EC%85%98-annotation-%EC%A0%95%EB%A6%AC Spring Annotation 정리] |
2016년 11월 11일 (금) 14:23 기준 최신판
Spring Boot를 정리 한다.
Annotation
@RequestMapping(value = "login", method = RequestMethod.GET, params = { "!error" })
@RequestMapping(value = "login", method = RequestMethod.GET, params = { "error" })
@Autowired
private HttpSession httpSession;
httpSession.getAttribute("projectId")
public String showLoginError(Map<String, Object> model, @RequestParam String error) { ~ }
publice String detail(@RequestParam HashMap<String, String> map)
public String domainList(ModelMap modelMap,
@RequestParam(value = "debug", defaultValue = "false", required = false) String debug) {
$.ajax({
type: "put",
url: "/api/filter/projects",
data: JSON.stringify({
projectId: filterProject.attr("projectId"),
projectName: filterProject.attr("projectName"),
projectDescription: filterProject.attr("projectDescription"),
projects: [],
dateId: "",
startDate: "",
endDate: "",
dateDescription: "",
dates: []
}),
contentType: "application/json",
dataType: "json"
}).done(function (data) {
});
public FilterWrap filterProjectsUpdate(@RequestBody FilterWrap filter) {