일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Java#java#메모리영역#클래스로더#가비지컬렉터
- IntelliJ#인텔리제이#인텔리#단축키
- Java#java#자바#다오#디티오#브이오#dao#dto#vo
- Java#정처기#비트연산자#정보처리기사
- 항해플러스#항해#항해플러스3기#회고
- 국비지원JAVA#국비교육JAVA#국비지원자바#국비교육자바#JSP#SERVLET#서블릿#
- 국비지원#국비교육#국비지원자바#국비교육자바#css#HTML#JAVA
- 국비지원#국비교육
- 프로그래밍
- html#HTML#프론트엔드#개발자#코딩#국비지원#국비교육#국비지원프론트엔드#국비지원HTML#국비지원html#국비프론트엔드
- Spring#spring#스프링#스프링프레임워크#스프링자동주입#스프링생성자#스프링기본#국비지원#국비교육#국비지원스프링
- Resource #
- 국비지원JAVA#국비지원자바#프로그랭#JSP#국비지원JSP#국비교육JSP#웹개발자#코딩
- db#데이터베이스#오라클#sql
- Spring#spring#스프링#스프링프레임워크#스프링의존성주입#스프링생성자#스프링기본#국비지원#국비교육#국비지원스프링
- 국비지원자바#국비교육자바#국비지원java#국비교육java#자바스크립트#프론트엔드
- 항해99 #항해플러스 #주니어개발자 #주니어개발자역량강화 #주니어개발자멘토링 #개발자사이드프로젝트 #코딩부트캠프 #코딩부트캠프후기
- 자바
- Java#JAVA#매개변수
- tibero#티베로#이중화#failvover
- 국비지원JAVA
- #java#JAVA#프로그래밍#웹개발자
- 개발자도서#개발자책#도메인#DDD#도메인주도개발시작하기#개발스터디#
- spring#Spring#RequestBody#ResponseBody
- java
- 자바#Java#배열예시#연습#기초다지기
- 개발자#it도서#도메인#DDD#ddd
- #
- Java#컴파일러#자바컴파일러#
- 쿼리스트링#쿼리문자열#바인딩
- Today
- Total
목록전체 글 (196)
개린이 개발노트
자바 연습문제 Mytv 라는 서브클래스에 메서드를 만들고 메인클래스에서 메서드 호출하여 코딩하기 package 연습; public class MyTv { boolean isPowerOn; int channel; int volume; final int MAX_VOLUME = 100; final int MIN_VOLUME = 0; final int MAX_CHANNEL = 100; final int MIN_CHANNEL = 1; void turnOnOff() { // (1) isPowerOn의 값이 true면 false로, false면 true로 바꾼다 isPowerOn = !isPowerOn; } void volumeUp() { // (2) volume의 값이 MAX_VOLUME보다 작을 때만 값을 1증가..
1+(1+2)+(1+2+3)...(1+2+3+..10)의 결과를 계산하시오 package 연습; // 1+(1+2)+(1+2+3)...(1+2+3+..10)의 결과를 계산하시오 public class Test01 { public static void main(String[] args) { int sum=0; for (int i = 0; i 80이라고 가정 // 숫자 입력 :50 -> 입력한 숫자보다크다, 숫자 입력: 90 입력한 숫자보다 작다 // 마지막에 정답을 입력하면 맞췄습니다. 총 시도 횟수는 3번입니다. import java.util.Scanner; public class Test05 { public static void main(String[] args) { int number = (int) ..
입출력 스트림 (단방향) 큐-> FIFO (Fisrt IN First Out) 저장장치가 있을 때 들어오고 나가는 것을 저장하는 장치 먼저들어온것들이 먼저 나가는것 제일 많이 비유하는게 프링글스 통에 밑에 구멍난 경우! 스택-> FILO LIFO (스택쌓는다는 말) 프링글스 통에 넣어서 쌓게함 스택은 밑에 구멍이 안 뚫려있음. 그래서 먼저들어간게 나중에 나옴 단방향 한방향으로만 갈수있음 반이중 동시에 입출력이 안되고 한쪽이 입력중이면 반대쪽은 안됨 전이중 동시에 주고받음 스트림 처리방법 바이트 기반 처리 (1byte 단위로 처리(2진수 형태로 되어있음) ): 영상, 음악, 그림 ,사진 InputStream, OutputStream InputStream: fileinputstream, 문자 기반 처리 : ..
쓰레드(Thread)( 쓰레드 실행시킬 떄는 .start 이용! ) public void run() { } run 메서드도 구현해야함 ↑ 숫자가 높을 수록 우선순위가 큼/ (기본설정값 5) 메인이 끝났다고 무조건 스레드가 끝나는 것은아님 t1.interrupt(); // 정지중인 상태의 대한 스레드만 강제로 예외 발생 시켜서 중지 .join은 스레드가 종료될때까지 기다리라는 뜻 Thread.yield(); -> 쓰레드가 동시에 사용될때 하나가 필요없을 떄무의미한 반복시키는 것 (메모리 감소를 위해) package 준석; public class Yt extends Thread{ }-> 스레드 생성 다중처리 진행인데 앞전의 것을 기다리지 않고 먼저 실행(멀티태스킹한다고 생각) 이클립스하면서 노래를 켜놓으면 ..
람다 Operator 428p 매개변수도 있고, 리턴값도 있고 그런것들을 이용해서 람다함수만듦. Operator 실행시는 것 .apply() package A; import java.util.function.BinaryOperator; import java.util.function.UnaryOperator; public class A { public static void main(String[] args) { BinaryOperator bo =(a,b)->a+b; //(제네릭을 설정해야됨) // 더블 대문자로 bo는 람다 저장하는 이름, ab는 매개변수 이름(이항연산자라 두개가 들어감),-> 어떤 것을 리턴 받을지 (매개변수,리턴 모두 더블로받음) System.out.println(bo.apply(3.5..
JSON 이란? JSON (존슨) 은 자바스크립트 문법이 아닙니다 - YouTube Ajax 요청에 대한 서버의 응답은 주로 HTML, XML, JSON이 사용된다. Ajax란? jQuery Ajax(feat. 생활코딩) (tistory.com) jQuery Ajax(feat. 생활코딩) JavaScript - jQuery Ajax (1/2) : 소개 - YouTube JavaScript - jQuery Ajax (2/2) : API 사용법 - YouTube note9999.tistory.com 이 중 가장 일반적인 데이터 형식은 JSON(JavaScript Object Notation)이다. { "name": "Lee", "gender": "male", "age": 20, "alive": true } ..
JavaScript - jQuery Ajax (1/2) : 소개 - YouTube JavaScript - jQuery Ajax (2/2) : API 사용법 - YouTube
1. var var i = 1; // int로 추론 var str = "Java"; // String으로 추론 var list = new ArrayList(); // ArrayList으로 추론 var는 지역변수를 선언할 때 초기값을 통하여 데이터 타입을 추론합니다. int var = 1; // 식별자로 사용 가능 var는 예약된 타입 이름으로 키워드가 아니기 때문에 식별자로 사용할 수 있습니다 2. 사용 예제 // 기존 코드 Map countryToCity = new HashMap(); // ... for (Map.Entry citiesInCountry : countryToCity.entrySet()) { List cities = citiesInCountry.getValue(); // ... } 기존 코..
Model에 데이터를 담을 때 addAttribute( ) 메소드를 사용하는데, 2가지 사용 방법이 있다. Model addAttribute(String name, Object value) - value 객체를 name 이름으로 추가한다. 뷰 코드에서는 name으로 지정한 이름을 통해서 value를 사용한다. @RequestMapping(value = "/standardCd/selectInfo.do") public String selectInfo(ModelMap model) throws Exception { List list = standardCodeService.selectInfo(); model.addAttribute("row", list); return "jsonView"; //model에 담은 데..
Model이란? Model은 HashMap 형태를 갖고 있으며, key, value값을 가지고 있습니다. 또한 addAttribute()와 같은 기능을 통해 모델에 원하는 속성과 그것에 대한 값을 주어 전달할 뷰에 데이터를 전달할 수 있습니다. Spring에서 Controller의 메서드를 작성할 때는 특별하게 Model이라는 타입을 파라미터로 지정할 수 있습니다. Model 객체는 JSP에 컨트롤러에서 생성된 데이터를 담아서 전달하는 역할을 하는 존재입니다. 이를 이용해서 JSP와 같은 뷰(View)로 전달해야 하는 데이터를 담아서 보낼 수 있습니다. 메서드의 파라미터에 Model 타입이 지정된 경우에는 스프링은 특별하게 Model 타입의 객체를 만들어서 메서드에 주입하게 됩니다.