일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 유닉스
- Database
- 파이썬
- 리눅스
- 인프라
- jpa
- 신재생에너지 발전설비 기사
- GPT-4's answer
- 고전역학
- 코틀린
- chatGPT's answer
- NIO
- 자바네트워크
- spring integration
- 데이터베이스
- oracle
- 역학
- 웹 크롤링
- kotlin
- spring data jpa
- JVM
- write by GPT-4
- flet
- Java
- 자바암호
- 시스템
- python
- write by chatGPT
- 자바
- 소프트웨어공학
- Today
- Total
목록전체 글 (930)
기억을 지배하는 기록
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 ..
Never write public int getFoo() {return foo;} again. Overview You can annotate any field with @Getter and/or @Setter, to let lombok generate the default getter/setter automatically. A default getter simply returns the field, and is named getFoo if the field is called foo (or isFoo if the field's type is boolean). A default setter is named setFoo if the field is called foo, returns void, and take..
@Cleanup Automatic resource management: Call your close() methods safely with no hassle. Overview You can use @Cleanup to ensure a given resource is automatically cleaned up before the code execution path exits your current scope. You do this by annotating any local variable declaration with the @Cleanup annotation like so: @Cleanup InputStream in = new FileInputStream("some/file"); As a result,..
@NonNull or: How I learned to stop worrying and love the NullPointerException. @NonNull was introduced in lombok v0.11.10. Overview You can use @NonNull on the parameter of a method or constructor to have lombok generate a null-check statement for you. Lombok has always treated various annotations generally named @NonNull on a field as a signal to generate a null-check if lombok generates an ent..
val Finally! Hassle-free final local variables. val was introduced in lombok 0.10. Overview You can use val as the type of a local variable declaration instead of actually writing the type. When you do this, the type will be inferred from the initializer expression. The local variable will also be made final. This feature works on local variables and on foreach loops only, not on fields. The ini..
Follow these five steps to use Spring Boot to upload files from the client to the server: Create a Spring Boot application and include the Spring Web facilities; Create a Spring @Controller class; Add a method to the controller class which takes Spring’s MultipartFile as an argument; Save the uploaded file to a directory on the server; and Send a response code to the client indicating the Spring..
Historically, we packaged production-ready Java web apps as WAR files. A servlet engine, like an IBM WebSphere or Apache Tomcat server, would host multiple applications at once. But for a variety of reasons -- the widespread adoption of microservices and desire to perform highly isolated unit tests, for instance -- the one-to-many relationship between the Java web app and the ..