전체 글 336

[Spring Http API Test] 테스트환경 만들기

[ IntelliJ ] HttpRequest 파일 생성 예제 확인하기 이런 식으로 예제 확인이 가능하다 이걸 보고 필요한거 추가하믄 됨 ### GET request with a header GET https://httpbin.org/ip Accept: application/json ### GET request with parameter GET https://httpbin.org/get?show_env=1 Accept: application/json ### GET request with environment variables GET {{host}}/get?show_env={{show_env}} Accept: application/json ### GET request with disabled redirect..

Web/HTTP 2023.03.19

[Spring] JAR / WAR

둘다 자바 클래스 확장자로 이를 압축하여 배포할 때 쓴다 jar 는 클라우드 플랫폼 구성 시 적합한 선택이다 일부 클라우드 플랫폼에서 war가 가능하긴 하지만, JAR는 모두 가능하다 JRE or JDK 환경에서 JAR 파일을 실행하고 있으며 스프링부트 자체에 내장 톰캣이 있기에 JAR 배포만으로 실행이 가능하다 근데 JSP 사용을 못함 -> 스프링부트는 JSP를 추천하지않는다 war는 기존 자바 애플리케이션 배포 방식이다 웹 초기 설정 클래스에 포함시켜서 사용하고 Servlet / Jsp 컨테이너에 배치할 수 있는 웹 어플리케이션 압축파일 Servlet Context 관련 파일들이 패키징 되어있으며, 웹 컨테이너의 구조에 맞추어 실행된다 클라우드 환경 - JAR 웹 어플리케이션 전용 - WAR (웹 사..

Web/tip 2023.03.19

[IntelliJ Javadocs] Javadocs 문서 만들기

https://www.jetbrains.com/help/idea/working-with-code-documentation.html Javadocs | IntelliJ IDEA www.jetbrains.com 틀린 내용이 있다면 알려주세요 💻 Javadoc는 Java 소스 코드에서 HTML 형식의 Java 코드 문서를 생성하는 도구이다 일반적으로 클래스, 메소드 또는 필드 위에 배치되는 Javadoc 주석으로 구성된다 https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html How to Write Doc Comments for the Javadoc Tool Javadoc Home Page This document describes..

Web/JAVA 2023.03.18

[Spring Batch] Configuring and Running a Job - (4) Configuring a JobLauncher

https://docs.spring.io/spring-batch/docs/current/reference/html/job.html#configuringJobLauncher Configuring and Running a Job If a group of Jobs share similar but not identical configurations, it may help to define a “parent” Job from which the concrete Job instances can inherit properties. Similar to class inheritance in Java, a “child” Job combines its elements and attr docs.spring.io 틀린 해석이 있..

Web/spring 2023.03.17

[Linux] 간단한 명령어 정리

cd: 디렉토리 변경 cd [directory_name]: 현재 디렉토리를 입력한 디렉토리로 변경 cd ..: 상위 디렉토리로 이동 cd /: 최상위 디렉토리로 이동 ls: 디렉토리 내 파일 및 디렉토리 목록 출력 ls: 현재 디렉토리 내 파일 및 디렉토리 목록 출력 ls -l: 파일 및 디렉토리 목록을 자세히 출력 ls -a: 숨겨진 파일 및 디렉토리를 포함하여 목록 출력 mkdir: 새 디렉토리 생성 mkdir [directory_name]: 입력한 이름의 새 디렉토리 생성 rm: 파일 또는 디렉토리 삭제 rm [file_name]: 파일 삭제 rm -r [directory_name]: 디렉토리 삭제 cp: 파일 복사 cp [source_file_path] [destination_file_path]:..

Web/tip 2023.03.17

[Spring Batch] Configuring and Running a Job - (3) Configuring a JobRepository

https://docs.spring.io/spring-batch/docs/current/reference/html/job.html#configuringJobRepository Configuring and Running a Job If a group of Jobs share similar but not identical configurations, it may help to define a “parent” Job from which the concrete Job instances can inherit properties. Similar to class inheritance in Java, a “child” Job combines its elements and attr docs.spring.io 틀린 해석이..

Web/spring 2023.03.16

[Spring Batch] Configuring and Running a Job - (2) Java Configuration

https://docs.spring.io/spring-batch/docs/current/reference/html/job.html#javaConfig Configuring and Running a Job If a group of Jobs share similar but not identical configurations, it may help to define a “parent” Job from which the concrete Job instances can inherit properties. Similar to class inheritance in Java, a “child” Job combines its elements and attr docs.spring.io 틀린 해석이 있다면 알려주세요 🍃 J..

Web/spring 2023.03.16

[KOTLIN] NFC Reader, Writer example

먼저 NFC 기능을 사용하려면 AndroidManifest.xml 파일에 다음 권한을 추가해야 한다 nfc adapter를 가져와서 NFC가 활성화되어 있는지 확인해야 한다. 다음 코드를 사용하여 NFC adapter를 가져와서 NFC가 활성화되어 있는지 확인할 수 있다. val adapter = NfcAdapter.getDefaultAdapter(this) if (adapter == null) { // NFC가 지원되지 않는 기기입니다. return } if (!adapter.isEnabled) { // NFC가 비활성화되어 있습니다. 사용자에게 활성화를 요청합니다. val intent = Intent(Settings.ACTION_NFC_SETTINGS) startActivity(intent) } NF..

728x90