일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- write by chatGPT
- 파이썬
- Spring boot
- chatGPT's answer
- kotlin
- 리눅스
- 소프트웨어공학
- android
- Spring Batch
- GIT
- 자바네트워크
- 코틀린
- 유닉스
- oracle
- GPT-4's answer
- 웹 크롤링
- 자바암호
- NIO
- 시스템
- 인프라
- write by GPT-4
- Database
- 고전역학
- 자바
- JVM
- 뉴턴역학
- lombok
- Java
- 역학
- python
- Today
- Total
목록Library (44)
Akashic Records
활성화 방법 @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(securedEnabled = true, prePostEnabled = true) public class SecurityConfig extends WebSecurityConfigurerAdapter {...} @EnableGlobalMethodSecurity 어노테이션의 속성으로 securedEnabled 를 true @Secured 어노테이션을, prePostEnabled를 true @PreAuthorize와 @PostAuthorize를 사용할 수 있음. 차이점 @Secured는 표현식 사용할 수 없고 @PreAuthroize, @PostAuthorize는 표현식 사용을 사용하여 ..
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 ..
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..
Equality made easy: Generates hashCode and equals implementations from the fields of your object. Overview Any class definition may be annotated with @EqualsAndHashCode to let lombok generate implementations of the equals(Object other) and hashCode() methods. By default, it'll use all non-static, non-transient fields, but you can modify which fields are used (and even specify that the output of ..
No need to start a debugger to see your fields: Just let lombok generate a toString for you! Overview Any class definition may be annotated with @ToString to let lombok generate an implementation of the toString() method. By default, it'll print your class name, along with each field, in order, separated by commas. By setting the includeFieldNames parameter to true you can add some clarity (but ..