자바(11)
-
android 인터넷 통신 설정(AndroidManifest.xml)
xmlns:android="http://schemas.android.com/apk/res/android" package="..."> android:name="android.permission.INTERNET"/> android:name="android.permission.ACCESS_NETWORK_STATE" /> android:name="android.permission.ACCESS_WIFI_STATE" /> AndroidManifest.xml 파일에 위 코드를 추가해주면JAVA에서 인터넷 통신이 가능해진다
2017.09.27 -
ibatis '#'예약어 처리 방법
ibatis에서 변수로 #을 이용 할때 xml 에러를 발생 시킴 처리 방법##을 사용하여 처리하면 됨
2017.09.12 -
spring 3.0 json한글처리
@RequestMapping(value = "")public ResponseEntity convert() throws Exception { // 응답헤더 지정 HttpHeaders httpheaders = new HttpHeaders(); httpheaders.add("Content-Type", "application/json;charset=UTF-8"); // Json 결과값 : {"name": "이름","age": 18} String json = "{\"name\": \"이름\",\"age\": 18}" ; return new ResponseEntity(json, httpheaders, HttpStatus.CREATED) ; }
2017.09.01 -
Map 데이터 추출
Map map = new HashMap(); // 전체 꺼내기 // 느림 for (Integer key : map.keySet()) { String value = map.get(key); } // 빠름 for (Entry entry : map.entrySet()) { String value = entry.getValue(); }
2016.09.13 -
개발노트
다음 에디터
2016.08.24