일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 파이썬
- 유닉스
- kotlin
- NIO
- oracle
- JVM
- 리눅스
- write by chatGPT
- python
- write by GPT-4
- 인프라
- 고전역학
- 코틀린
- 데이터베이스
- chatGPT's answer
- 자바암호
- 역학
- 자바
- 자바네트워크
- spring data jpa
- 시스템
- 신재생에너지 발전설비 기사
- flet
- 웹 크롤링
- jpa
- spring integration
- GPT-4's answer
- Database
- 소프트웨어공학
- Java
- Today
- Total
목록전체 글 (930)
기억을 지배하는 기록
활성화 방법 @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) public class SecurityConfig extends WebSecurityConfigurerAdapter {...} @EnableGlobalMethodSecurity 어노테이션의 속성으로 securedEnabled 를 true @Secured 어노테이션을, prePostEnabled를 true @PreAuthorize와 @PostAuthorize를 사용할 수 있음. 차이점 @Secured는 표현식 사용할 수 없고 @PreAuthroize, @PostAuthorize는 표현식 사용을 사용하여 ..
스프링 부트 기반으로 스프링 프로젝트를 만든다. start.spring.io에서 프로젝트 생성 Maven 과거, Gradle은 현재 generate 한후 Eclipse에 Import slf4j 로그 인터페이스 logback 요즘 로그 출력에 사용
Print a series of numbers with recursive Java methods Sum a series of numbers with Java recursion Calculate a factorial in Java with recursion Print the Fibonacci series with Java and recursion A recursive Java palindrome checker 1. A simple Java recursion example A simple program is always the best place to start when you learn a new concept. This first Java recursion example simply prints out ..
docs.docker.com/compose/install/ 자세한 내용은 여기 Install Docker Compose docs.docker.com 1. sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 2. sudo chmod +x /usr/local/bin/docker-compose 3. $ docker-compose --version docker-compose version 1.27.4, build 1110ad01 4. "docker-compose" 명령이 실행이 안되면 sudo ln -s ..
All batch processing can be described in its most simple form as reading in large amounts of data, performing some type of calculation or transformation, and writing the result out. Spring Batch provides three key interfaces to help perform bulk reading and writing: ItemReader, ItemProcessor, and ItemWriter. ItemReader Although a simple concept, an ItemReader is the means for providing data from..
Immutable 'setters' - methods that create a clone but with one changed field. @Wither was introduced as experimental feature in lombok v0.11.4. @Wither was renamed to @With, and moved out of experimental and into the core package, in lombok v1.18.10. Overview The next best alternative to a setter for an immutable property is to construct a clone of the object, but with a new value for this one f..
synchronized done right: Don't expose your locks. Overview @Synchronized is a safer variant of the synchronized method modifier. Like synchronized, the annotation can be used on static and instance methods only. It operates similarly to the synchronized keyword, but it locks on different objects. The keyword locks on this, but the annotation locks on a field named $lock, which is private. If the..
Constructors made to order: Generates constructors that take no arguments, one argument per final / non-null field, or one argument for every field. Overview This set of 3 annotations generate a constructor that will accept 1 parameter for certain fields, and simply assigns this parameter to the field. @NoArgsConstructor will generate a constructor with no parameters. If this is not possible (be..