일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Coroutines
- appbar
- textfield
- livedata
- viewmodel
- drift
- 안드로이드
- binding
- Dialog
- 계측
- 앱바
- android
- DART
- 테스트
- ScrollView
- data
- scroll
- Kotlin
- Flutter
- 앱
- intent
- Compose
- activity
- Navigation
- LifeCycle
- TEST
- textview
- tabbar
- Button
- CustomScrollView
- Today
- Total
목록전체 글 (364)
Study Record
✍ 객체 지향 프로그래밍이란? 프로그래밍에서 필요한 데이터를 추상화시켜상태와 행위를 가진 객체로 만들고, 객체들 간의 상호작용을 통해 로직을 구성하는 프로그래밍 방법이다. 객체지향 프로그래밍 제대로 이해하기 캡슐화를 핵심으로 두고 보는 OOP 의 핵심 포인트 velog.io ✍ Class 사용 방법 void main() { // new 키워드를 사용해도 좋고 사용하지 않아도 된다. // Idol blackPink = new Idol("블랙 핑크", ["지수", "제니", "리사", "로제"]); Idol blackPink = Idol("블랙 핑크", ["지수", "제니", "리사", "로제"]); print(blackPink.name); blackPink.introduce(); } class Idol {..
✍ 프로그램 설치 없이 Dart 코드 실행하는 사이트 https://dartpad.dev/? DartPad dartpad.dev ✍ 기본 문법 ※ Dart 는 세미클론을 붙여야 한다. 1. 변수 선언 방법 var number = "변수 선언"; dynamic nameName = "코드 팩토리"; nameName = 2; // 정수 타입 int number1 = 2; int number2 = 4; // 실수 타입 double number3 = 2.5; // Boolean 타입 bool isTrue = true; bool isFalse = false; // 글자 타입 String name = "빠라라람"; print(name3.runtimeType); 변수를 선언할 때 'var' 키워드로 선언하면 오른쪽에 ..
@GetMapping("hello-mvc") - http://localhost:8080/hello-mvc 로 접근 가능 @RequestParam(value = "name", required = false) - 요청 파라미터 값을 받을 수 있다. value : 파라미터 변수 이름 required : true 면 꼭 있어야 하는 파라미터 변수이고 false 면 없어도 된다. (default : true) @ResponseBody - http 의 Body 에 문자 내용을 직접 반환한다. 주고 API 방식에서 많이 사용한다.

✍ 정적 컨텐츠(파일을 그대로 웹 브라우저에 내려주는 방법) Spring Boot Features - Static Content Spring Boot Features Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, Tomcat, and Undertow) and with both reactive and Servlet-based web applications. It occurs as part of closing the application context and is performed in the earliest docs.spring.io 파일을 그대로 웹 브라우저에 내려주는 방식이다. [예시] re..

✍ IDE 외에서 빌드하기 기본적으로 IDE 에서 프로젝트를 실행하려면 Run 버튼을 누르면 된다. 그 외에서 빌드하고 실행하는 방법은 다음과 같다. [윈도우] ① 명령 프롬프트(cmd) 를 실행하고 프로젝트가 있는 경로로 이동해준다. (이동 명령어 : cd "경로", D 드라이브 : D: ) > dir ② build 해준다. > gradlew build ( > gradlew clean build) ③ build/libs 에 생긴 jar 파일을 java 로 실행하면 서버가 실행된다. > java -jar [파일 이름]

✍ Welcome Page 서버를 실행하고 http://localhost:8080 으로 접속했을 때 기본적으로 보이는 페이지를 설정할 수 있다. resources/static 디렉터리에 index.html 파일을 만들면 이 페이지가 기본 페이지가 된다. ✍ GetMaping 이용하기 ① 먼저, 컨트롤러 자바 파일을 하나 생성한다. @Controller public class HelloController { @GetMapping("hello1") public String hello(Model model){ model.addAttribute("data", "Hello"); return "hello"; } } ② resources/templates 파일안에 hello.html 파일을 생성한다. 코드 해석을 해..

✍ IntelliJ를 사용하여 자바 스프링 프로젝트 생성하기 스프링 프로젝트를 직접 생성하는 방법 외에도 스프링 부트 스타터 사이트를 이용하여 스프링 프로젝트를 쉽게 생성할 수 있다. → 사이트 바로 가기 (https://start.spring.io) ※ Maven Project, Gradle Project 선택하는 것은 필요한 라이브러리를 끌어와 빌드시키는 방법을 택하는 것이다. 요즘은 Gradle Progject를 많이 선택한다고 한다. ※ Spring Boot 에서 버전을 선택하는 것 중 SNAPSHOP 은 아직 개발 중이라는 의미고 M 은 정식 릴리즈가 아니다. ※ ADD DEPENDENCIES... 를 선택하여 Spring Web 과 Thymeleaf를 선택해준다. 선택 하사항을 클릭하고 GEN..
✍ android 공식 문서 https://developer.android.com/reference/android/app/AlarmManager?hl=ko AlarmManager | Android Developers android.net.wifi.hotspot2.omadm developer.android.com ✍ AlarmManager AlarmManager 클래스는 안드로이드 시스템의 알람 서비스에 접근할 수 있다. 미래의 어떤 시점에 수행할 작업을 스케줄링할 수 있고 알람이 발생되면 등록된 Intent 가 시스템에 의해 브로드캐스트되고 해당 애플리케이션이 실행 중이 아닌 경우 자동으로 시작된다. 단, 안드로이드가 꺼져 있거나 재부팅된 경우 지워진다.