[Java] 정수를 문자열로 변환하기 Integer number = 123; String numericStr = ""; numericStr = String.valueOf(number); numericStr = Integer.toString(number); numericStr = "" + number; 반대로 문자열을 정수로 변환 String numericStr = "123"; Integer number = 0; number = Integer.parseInt(numericStr); 도움이 되셨다면 공감이나 좋아요 부탁드립니다~♡광고를 클릭해주시면 더욱 감사하구요~♡v♡/혹시 더 궁금하신 점이나 부족한 부분, 잘못된 내용이 있다면 댓글 부탁드립니다~~
Java에서 배열 데이터 전송 받기 1. 전송 form PHP와는 다르게 input name에 배열표시 '[]'를 넣지 않아도 된다. 위와같은 데이터를 Controller에서 받을 경우 2. controller @Controller public class TestController { @RequestMapping(value = "/process.do") public String testMethod(HttpServletRequest request, Model model) { String[] arrayParam = request.getParameterValues("name"); for (int i = 0; i < arrayParam.length; i++) { System.out.println(arrayPar..
스프링(Spring)에서 Ajax 요청 / 응답1. java 객체의 json 변환을 위한 의존 라이브러리 추가1-1 org.codehaus.jackson jackson-mapper-asl 1.9.13 1-2 com.fasterxml.jackson.core jackson-core 2.8.8 com.fasterxml.jackson.core jackson-annotations 2.8.8 com.fasterxml.jackson.core jackson-databind 2.8.8 2. viewresolver 설정2-1. dispatcher-servlet.xml에서 설정할 경우 2-2. java 파일 @Configure, @Bean 설정 @Configuration public class DispatcherServle..
[Java] 현재 페이지 주소 정보 가져오기 현재 페이지 주소 : http://localhost:8080/project/path/index.jsp request.getRequestURI(); // 요청경로 [ /project/path/index.jsp ] request.getContextPath(); // 프로젝트의 경로값만 가져옴 [ /project ] request.getRequestURL(); // 프로토콜, 호스트를 포함한 전체 요청경로 [ http://localhost:8080/project/path/index.jsp ] request.getServletPath(); // 파일 경로명 [ /path/index.jsp ] 도움이 되셨다면 공감이나 좋아요 부탁드립니다~♡ 광고를 클릭해주시면 더욱 감..
- Total
- Today
- Yesterday
- 전자정부
- asp.net core
- Spring
- 자바
- 하이원
- 이클립스
- ubuntu
- MySQL
- 스프링
- Java
- CentOS
- Entity Framework Core
- dotnet core
- Fedora
- c#
- egoverment
- Windows
- DART
- high1
- Flutter
- express
- php
- eGovFrame
- JSP
- jQuery
- .NET Core
- Linux
- Eclipse
- MariaDB
- egov
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 |