본문 바로가기
반응형

Java8

1주차) 백엔드 개발자가 데이터플랫폼 빠르게 온보딩! 목표 : 생소한 비즈니스 도메인+기술 도메인 파악 2025.02.17 - [Data Platform/Backend to DataPlatform] - 백엔드 개발자가 데이터 플랫폼 팀으로 이동하면?2025.02.17 - [Data Platform/Backend to DataPlatform] - 데이터 플랫폼에서 데이터는 어떻게 흘러갈까?비공개 - 비즈니스 도메인 파악을 위해 업무 wiki 정리정리하다가 날아감 ㅋㅋㅋㅋㅋㅋ 하필 장애가 그때..ㅠㅠㅠㅠㅠ이때 의욕이 살짝 꺽였음..ㅂㄷㅂㄷ다시 정리!!!Overview / Architecture / Cluster등등마지막 Working Time!!Service 이용해보기!!Next Plan은..기술 도메인 익히기!!이번주는 이렇게 흘러갔다..너무 조급하게 생각하.. 2025. 2. 21.
콜라츠 수열 - error: incompatible types: bad return type in lambda expression .mapToInt(i -> i) 코딩 테스트 난이도 (하)에서 콜라츠 수열이라는걸 알게 되었다. 세상에 이런일이! ㅋㅋ 반드시 x가 1이된다니.. 모든 자연수 x에 대해서 현재 값이 x이면 x가 짝수일 때는 2로 나누고, x가 홀수일 때는 3 * x + 1로 바꾸는 계산을 계속해서 반복하면 언젠가는 반드시 x가 1이 되는지 묻는 문제를 콜라츠 문제라고 부릅니다. 그리고 위 과정에서 거쳐간 모든 수를 기록한 수열을 콜라츠 수열이라고 부릅니다. error: incompatible types: bad return type in lambda expression .mapToInt(i -> i) answer = result.stream() .mapToInt(i -> i) .toArray(); 람다표현식 리스트 -> 배열로 변경하면서 나오는 타입문.. 2023. 8. 16.
코딩 테스트 - 프래그래머스 코딩 테스트를 풀어보자:) https://programmers.co.kr/ 문자열 출력하기 난이도 0레벨 ㅋㅋ 아래처럼 소스를 짜고! 코드를 실행! 와우! 점수를 준다 ㅋㅋㅋ 굿~최대 점수가 3점인가?? 14점도 있었다..ㅎㅎ 다른 사람의 풀이도 볼수 가 있다! ㅋㅋ 역시 코딩에 정답이 없어! 여러가지 답이 나올수 있다! 대학교때 생각이 물씬 난다 ㅎㅎ 다른소스를 보니 a.length()가 중복이라 변수로 처리했다. 굿! 앞으로 종종 풀어보자:) 2023. 7. 18.
gradle - Could not resolve all dependencies for configuration ':detachedConfiguration4'.Using insecure protocols with repositories, without explicit opt-in, is unsupported. 넥서스에 있는 것을 가져오려는데 오류가 났다. 에러발생 Could not resolve all dependencies for configuration ':detachedConfiguration4'.Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://maven.xxx.com/어쩌구저쩌구)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.4.1/dsl/org.gradle.api.artifacts.repo.. 2022. 5. 9.
springboot에서 main args를 사용하려면? 내가 하고 싶은 것은 아래와같이 argument에 날짜를 넣고 그것을 메인쪽에 있는 String[] args에서 받아서 처리하는 것이다. 디버깅을 해보면 args에 위에서 설정했던 값이 들어오는것 처럼 보인다. 그러나 현실은 에러!! 아래에 보면 public void run()쪽에서 예외가 나버린다. java.lang.reflect.InvocationTargetException 콘솔창에 찍힌 오류 내용 Exception in thread "restartedMain" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodA.. 2021. 7. 2.
@PreDestory란? 이 메소드는 소멸 메소드이며 이전 @PostConstruct와 상반된 개념이다. JSR-250 스펙에 따라 구현 되었다. (걍 자바에서 사용하려면 또는 springframework 2.5미만 버전에서는 javax.annotation 패키지 관련 라이브러리가 필요 함.) Springframework 2.5부터는 사용 가능! 현재 프로젝트에서는 @PostConstruct와 @PreDestory만 사용하고 있다. 하지만 찾아보니 여러가지 방법이 존재했다. 아래의 멋진 사이트를 참고하면 된다. 정리 및 공유 감사용! madplay.github.io/post/spring-bean-lifecycle-methods 그 중 흥미로운 테스트가 있었는데 바로 생성자/소멸자 호출 순서 테스트이다. import javax.a.. 2020. 11. 12.
@PostConstruct란? @PostConstruct? javax.annotation Annotation Type PostConstruct @Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface PostConstruct The PostConstruct annotation is used on a method that needs to be executed after dependency injection is done to perform any initialization. This method MUST be invoked before the class is put into service. This annotation MUST be supported on.. 2020. 11. 10.
[Study 01] Java 문자열 simple source 자바..기초반 supporter가 되었다;ㅁ; public class emartStudy07 { /** * @2012.01.30 Emart Team Study */ public static void main(String[] args) { // TODO Auto-generated method stub // 문자열 시작 ////////////////////// String str2=""; String path="C:\\dev\\workspace"; String str1 = new String("안녕하세요"); str2="문자열\"공부\" 시작!"; // 1) 문자열 결합 하기 System.out.println("============== 문자열 결합 start =================="); Syst.. 2012. 1. 30.
반응형