728x90 반응형 Study/Java97 [JAVA] Spring Boot - Standard Commons Logging discovery in action with spring-jcl:please remove commons-logging.jar from classpath in order to avoid potential conflicts Spring Boot에서는 spring-jcl을 통해 로깅을 관리하며, commons-logging.jar이 클래스패스에 포함되어 있으면 충돌이 발생할 수 있습니다. 이를 해결하는 방법은 다음과 같습니다.1. commons-logging.jar 제거하기commons-logging.jar이 직접 추가되어 있다면, 프로젝트에서 이를 제거해야 합니다.Maven 프로젝트의 경우scope를 provided로 설정하여 빌드 시 포함되지 않도록 하거나, 직접 dependency를 제거합니다.xml복사편집dependency> groupId>org.springframework.bootgroupId> artifactId>spring-boot-starterartifactId> exclusions> exclusion> gro.. 2025. 3. 7. Java Currency getDefaultFractionDigits() Method DescriptionThe Java Currency getDefaultFractionDigits() method gets the default number of this currency's fraction digits.DeclarationFollowing is the declaration for java.util.Currency.getDefaultFractionDigits() methodpublic int getDefaultFractionDigits()Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. .. 2024. 8. 11. [Java] 자바 소수점 원하는 자리수 만큼 출력 자바로 문제를 풀다보면 소수점 몇째 자리까지 출력하라는 조건이 종종 나오곤 한다. double형의 두 수인 5.0과 3.0을 나눈 값을 출력하면 우측처럼 1.6666666666666667로 출력 가장 끝부분 다음 자리에서 반올림한 값이 나온다. 이 때, 소수점 세 번째 자리까지만 출력하고싶다면 어떻게 해야할까? 첫 번째. System.out.printf() 사용단순히 println()을 사용하지 말고 printf() 메소드에서 첫 번째 인자로 몇 번째 자리까지 출력할지 정해주고 출력하는 방법이다. 이 방법은 가장 단순하지만 리턴값이 나오지 않는다. 두 번째. String.format() 사용자바에서 문자열을 다루는 String 클래스는 매우 다양하게 사용될 때가 있는데 이 때가 그 중 하나이다. .. 2024. 8. 11. [JAVA] json String to List map String to mapMap map = new ObjectMapper().readValue(스트링변수, new TypeReference>() { });String to List mapList> paramMap = new ObjectMapper().readValue(스트링변수, new TypeReference>>(){}); 맨날 하도 헷깔려서 적어놓는다물론 스프링일 경우 pom.xml에 json이 dependency 로 추가되어있어야 한다 출처: https://unlimitedcoding.tistory.com/14 [악역영애의 개발일지:티스토리] 2024. 8. 11. 이전 1 2 3 4 ··· 25 다음 728x90 반응형