"Spring Boot"의 두 판 사이의 차이

오픈소스 비즈니스 컨설팅
둘러보기로 가기 검색하러 가기
잔글
잔글
15번째 줄: 15번째 줄:
  
  
public String showLoginError(Map&lt;String, Object&gt; model, @RequestParam String error) { ~ }<br/>&nbsp;&nbsp; &nbsp;public String domainList(ModelMap modelMap,&nbsp;<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; @RequestParam(value = "debug", defaultValue = "false", required = false) String debug) {
+
public String showLoginError(Map&lt;String, Object&gt; model, @RequestParam String error) { ~ }<br/>&nbsp;&nbsp; &nbsp;public String domainList(ModelMap modelMap,&nbsp;<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; @RequestParam(value = "debug", defaultValue = "false", required = false) String debug) {<br/><br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$.ajax({<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;type: "put",<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;url: "/api/filter/projects",<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;data: JSON.stringify({<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;projectId: filterProject.attr("projectId"),<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;projectName: filterProject.attr("projectName"),<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;projectDescription: filterProject.attr("projectDescription"),<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;projects: [],<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;dateId: "",<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;startDate: "",<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;endDate: "",<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;dateDescription: "",<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;dates: []<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}),<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;contentType: "application/json",<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;dataType: "json"<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}).done(function (data) {<br/>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;});
 
 
 
 
 
 
  
 +
<br/>public FilterWrap filterProjectsUpdate(@RequestBody FilterWrap filter) {
  
 
== 참고 문헌 ==
 
== 참고 문헌 ==
  
 
*[[Spring|Spring]]
 
*[[Spring|Spring]]

2016년 11월 11일 (금) 13:27 판

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) { ~ }
    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) {

참고 문헌