Introducing Java !!
(Universal Language)
Overview
자바(영어:
Java, 문화어: 자바)는 썬 마이크로시스템즈의 제임스 고슬링(James Gosling)과 다른 연구원들이 개발한 객체 지향적 프로그래밍 언어이다.
1991년 그린 프로젝트(Green Project)라는 이름으로 시작해 1995년에 발표했다.
Contents
Table of Contents
| No | Title | Remarks |
|---|---|---|
| 0 | 환경설정 | 환경설정 |
| 1 | 강의내용 | 강의내용 |
| 2 | AOP | Spring AOP |
| 3 | RESTful API | Spring RESTfulAPI |
| 4 | WebService | Spring WebService |
Get Started
Jupyter에 Java Kernel을 설치하는 방법 IJava는 JDK >= 9 로 되어 있으나 실제 JDK=9에서만 돌아가는 것으로 보인다. 설치하는 방법도 python 컴파일 방법으로는 잘 동작하지 않으니 실제 binary파일을 받고 설치하는것이 좋다. jupyter kernelspec list
# Pass the -h option to see the help page
python3 install.py -h
# Otherwise a common install command is
python3 install.py --sys-prefix
SpringBoot & Gradle 프로젝트 생성하기
- elipse에서 Spring Starter를 선택
- 빌드툴은 Maven이 아닌 Gradle을 선택
- Core의 Lombok, Web의 Web, SQL의 JPA, H2 , OPS의 Actuators 를 선택합니다.
- build.gradle은 아래와 같습니다.
buildscript {
ext {
springBootVersion = '2.0.2.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-web')
runtime('com.h2database:h2')
compileOnly('org.projectlombok:lombok')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
Data & Source
Table of Data & Source
| No | Title | Educational Institution | Source | Remarks |
|---|---|---|---|---|
| 1 | JSoup | 스터디 | jsoup.ipynb | WebCrawling |
Syllabus
- 지난 학습 정리
- 코딩을 배워야 하는 이유(동영상)
- 미래의 언어 코딩(동영상)
- 날짜와 시간 & 형식
- 컬렉션
- 지네릭스, 열거형, 어노테이션
- Junit
- 성능비교, 자바성은 튜닝
- 쓰레드
- 람다와 스트림
- 음수표현, 메모리 디버깅
- 입출력 I/O
- Networking
- Restful API GET 실습
- Neural Network 예측(아라한 문서)
- 링크 소프트웨어 세상(동영상)
Spring boot 간단한 Java파일은 아래와 같습니다.
package com.example.simpletest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import lombok.extern.slf4j.Slf4j;
@SpringBootApplication
public class SimpleTestApplication {
public static void main(String[] args) {
SpringApplication.run(SimpleTestApplication.class, args);
}
@Slf4j
@Controller
public static class AIController {
@GetMapping("/hello")
@ResponseBody
public String helloworld() {
return "hello world";
}
}
}