1. 메니페스트에 인터넷 권한 2. xml 만들기 3. 코드쓰기 package com.example.acid.jsonpost; import android.os.AsyncTask; import android.os.Handler; import android.os.Message; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.JsonReader; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Te..
1234567891011121314 @RequestMapping(value = "/html/test01", method = RequestMethod.POST) public String test01post(@RequestParam(value = "email", defaultValue = "0", required = true) String email, @RequestParam(value = "password", defaultValue = "0", required = true) String password, Model model, HttpSession ses) { System.out.printf("id %s \n", email); System.out.printf("password %s \n", password..
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816..
12345678910111213141516 com.googlecode.json-simple json-simple 1.1 com.fasterxml.jackson.core jackson-core 2.8.1 com.fasterxml.jackson.core jackson-databind 2.8.1 Colored by Color Scriptercs pom에 기본적으로 추가 123456 @RequestMapping(value = "/html/test3json", method = RequestMethod.POST, produces = "application/json" ) public String test03post(@RequestBody Map jsons) { System.out.println(jsons); retu..
Map과 List만으로도 Json을 만들수 있다. 12345678910111213141516 com.googlecode.json-simple json-simple 1.1 com.fasterxml.jackson.core jackson-core 2.8.1 com.fasterxml.jackson.core jackson-databind 2.8.1 Colored by Color Scriptercs pom에 추가한다. 1234567891011121314151617181920212223@ResponseBody @RequestMapping(value = "/html/test3", method = RequestMethod.POST) public Map test03post() { Map map = new HashMap()..