일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
- token filter test
- Kafka
- 900gle
- zip 파일 암호화
- zip 암호화
- MySQL
- 차트
- TensorFlow
- Python
- License
- license delete
- aggregation
- aggs
- licence delete curl
- ELASTIC
- flask
- springboot
- docker
- API
- Test
- matplotlib
- Mac
- Elasticsearch
- Java
- sort
- analyzer test
- high level client
- plugin
- 파이썬
- query
- Today
- Total
목록JAVA (71)
개발잡부
package com.bbongdoo.doo.keyword; import com.bbongdoo.doo.domain.Keywords; import com.bbongdoo.doo.domain.KeywordsRepository; import com.bbongdoo.doo.service.KeywordsService; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context..
Annotation package com.bbongdoo.doo.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface Timer { } Aspect package com.bbongdoo.doo.aspect; import org.aspectj.lang.ProceedingJoi..
한개의 컬럼에 UNIQUE 설정 @Column(name="column" , unique=true) long column 두 개 이상 컬럼을 묶어 UNIQUE 설정 @Table 속성 uniqueConstraints 사용 @Entity @Table( name="keywords", uniqueConstraints={ @UniqueConstraint( name={"contstraintName"} columnNames={"keyword", "use_yn"} ) } ) @Data public class Entity{ @Column(name="keyword") String keyword; @Column(name="use_yn") String use_yn; } http://iryan.kr/t7eogjtthy 농심 먹태..
Table 'shop.hibernate_sequence' doesn't exist @GeneratedValue(strategy = GenerationType.IDENTITY) https://mkyong.com/spring-boot/spring-boot-mysql-table-db_name-hibernate_sequence-doesnt-exist/ spring.jpa.hibernate.use-new-id-generator-mappings=false
drop table if exists rooms; drop table if exists room_members; drop table if exists user_account; drop table if exists users; drop table if exists balance_send; drop table if exists balance_receive; CREATE TABLE `rooms` ( `id` bigint NOT NULL AUTO_INCREMENT, `room_id` varchar(3) NOT NULL, `room_name` varchar(100) NOT NULL, `category1` varchar(100) DEFAULT NULL, `category2` varchar(100) DEFAULT N..
자바8 HashMap 보다 간결하고 효과적으로 작성하기 자바8부터 HashMap에 여러 메서드들이 추가되었고 이런 메서드를 사용해서 HashMap을 조금 더 간결하면서 효율적으로 사용하는 방법에 대해서 알아보겠습니다. putIfAbsent() computeIfAbsent() compute() computeIfPresent() merge() getOrDefault() 작성된 코드는 java8-hashmap을 참고해주세요. 1. putIfAbsent() vs. computeIfAbsent() 2가지 메서드의 공통점은 key의 존재 여부에 따라서 새로운 key와 value 값을 추가하는 메서드입니다. putIfAbsent putIfAbsent는 2개의 인자를 받습니다. default V putIfAbsent(..
스프링 부트 애플리케이션 구동 시점에 특정 코드 실행 시키기기 ex) selenium package com.doo.selenium.runner; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; @Component public class CrawlerRunner implements CommandLineRunner { @Override public void run(String... args) throws Exception { System.out.println("1111"); } }

https://aragost.com/blog/java/picocli-introduction/ Picocli introduction This is an introduction to creating user-friendly command-line interfaces to Java applications with the picocli framework. aragost.com maven pom.xml info.picocli picocli 4.5.1 gradle gradle.build // https://mvnrepository.com/artifact/info.picocli/picocli-spring-boot-starter implementation group: 'info.picocli', name: 'picoc..

homebrew 설치가 되지 않아 다운 받아서 설치 https://maven.apache.org/download.cgi Maven – Download Apache Maven Downloading Apache Maven 3.8.4 Apache Maven 3.8.4 is the latest release and recommended version for all users. The currently selected download mirror is https://dlcdn.apache.org/. If you encounter a problem with this mirror, please select another mirror. I maven.apache.org 접속해서 Binary tar.gz archive ..
package com.curi.log.service;//package com.curi.log.service; import com.opencsv.CSVWriter; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.RequiredArgsConstructor; import lombok.Setter; import org.elasticsearch.action.search.SearchRequest; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.action.search.SearchScrollRequest; import org.elasticsea..