- Spring
- MethodArgumentNotValidException
- merge sort
- spring ์์ ๋ก๊ทธ์ธ
- ํจ์คํธ์บ ํผ์คX์ผ๋์
- aligoapi
- Data Structure
- SQL
- docker
- spring์ผ๋ก https ์ ์ฉ
- OpenAPI
- GIT
- MAKE US
- datagrip
- Rp2๊ธฐ
- Java
- Quick Sort
- SSL
- ๋ฆฌ๋ ์ค ๋ช ๋ น์ด
- spring ๊ตฌ๊ธ ์์ ๋ก๊ทธ์ธ
- C++
- Unity
- node js
- java error
- ๊ตฌ๊ธ ์์ ๋ก๊ทธ์ธ
- DATABASE
- mysql
- RP 2๊ธฐ
- @CreatedDate
- ์์คํ ์ํํธ์จ์ด
๋ชฉ๋ก์ ์ฒด ๊ธ (132)
YS's develop story

ssl ์ธ์ฆ์๋ฅผ ๋ฐ๊ธฐ ์ํด์๋ ๋ฑ๋กํ ๋๋ฉ์ธ์ด ํ์ํฉ๋๋ค. ๊ทธ๋์ ์ ๋ ๊ฐ๋น์์์ 1900์ง๋ฆฌ ์ ์ผ ์ผ ๋๋ฉ์ธ์ 1๋ ๊ตฌ๋งคํ์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ๋ฐฐํฌํ ์ธ์คํด์ค์ ์ฃผ์๋ฅผ ๋ฑ๋กํด ์ฃผ์์ต๋๋ค. https://certbot.eff.org/instructions?ws=other&os=ubuntufocal Certbot Instructions Tagline certbot.eff.org ์ ๋ gcp ์ธ์คํด์ค์์ spring ํ๋ก์ ํธ๋ฅผ ๋ฐฐํฌํ๊ณ ์์๊ณ ์ด์์ฒด์ ๋ ubuntu 20์ด์๊ธฐ์ ์๋์ฒ๋ผ ์ ํํ์ต๋๋ค. ์ฌ๋ฐ๋ฅด๊ฒ ์ ์ฌ์ดํธ์์ ์ ํ์ ํด์ ๋ฐ๋ผ ํ๋ฉด ๋ฉ๋๋ค. sudo snap install --classic certbot sudo ln -s /snap/bin/certbot /usr/bin/certbot sudo ce..

GCP๋ก ์ด๋ํฉ๋๋ค. Google ํด๋ผ์ฐ๋ ํ๋ซํผ ๋ก๊ทธ์ธ Google ํด๋ผ์ฐ๋ ํ๋ซํผ์ผ๋ก ์ด๋ accounts.google.com vm์ธ์คํด์ค -> ์ธ์คํด์ค ์์ฑ ์๋์ ๊ฐ์ด ์ค์ ํ์ต๋๋ค. ๊ฐ์ฅ ์ ๋ ดํ ๋น์ฉ์ผ๋ก ํ ์ ์์ต๋๋ค. OS๋ ubuntu๋ก ํ์ต๋๋ค. vpc ๋คํธ์ํฌ -> ์ธ๋ถ ๊ณ ์ ip ์ฃผ์ ์์ฝ์ ํด๋ฆญํด ๊ณ ์ ip์ฃผ์๋ฅผ ํ ๋นํฉ๋๋ค. ์์ฑ๋ ์ธ์คํด์ค์ ssh๋ฅผ ํตํด ์ฐ๊ฒฐํ๊ณ ๋์ปค๋ฅผ ์ค์นํฉ๋๋ค ์๋๋ ๋์ปค๊ณต์๋ฌธ์์์ ๊ฐ์ ธ์จ ์ค์น ๋ฐฉ๋ฒ์ ๋๋ค. Install Docker Engine on Ubuntu Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites an..

public record CreateReservationRequest( @NotNull(message = "startDate cannot be null") LocalDate startDate, @NotNull(message = "endDate cannot be null") LocalDate endDate, @NotNull(message = "numberOfPerson cannot be null") Integer numberOfPerson ) { public Reservations toEntity( User user, AccommodationRooms rooms, boolean paymentCompleted) { return Reservations.builder() .user(user) .rooms(roo..

@Getter @MappedSuperclass @EntityListeners(AuditingEntityListener.class) public abstract class BaseTimeEntity { @CreatedDate protected LocalDateTime createdAt; @Column(insertable = false) @LastModifiedDate protected LocalDateTime updatedAt; ..... .... ์์ ๊ฐ์ด createdAt ์นผ๋ผ์ ํ ์ด๋ธ์ ํํ์ด ์์ฑ๋ ๋ ์ต์ด์์ฑ๋ ์๊ฐ์ ๊ธฐ์ค์ผ๋ก ๊ฐ์ด ๋ฃ์ด์ง๋๋ก @CreatedDate ์ด๋ ธํ ์ด์ ์ด createdAt ํ๋์ ์ ์ฉ๋์ด ์์ต๋๋ค. ์๋๋๋ก๋ผ๋ฉด ์ด์ ์ด ์ํฐํฐ๋ฅผ ์ ์ฅํ ๋๋ง๋ค createdAt ํ๋๋ ํ์ฌ ..

docker-compose.yml ์ค์ ํ์ผ version: '3' services: travel-db: container_name: test build: context: ./database dockerfile: Dockerfile ports: - "3307:3306" restart: always healthcheck: test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ] timeout: 30s retries: 3 networks: - network networks: network: container_name -> ์ปจํ ์ด๋์ ์ด๋ฆ์ test๋ก ์ค์ ํฉ๋๋ค. build ์น์ : ๋์ปค ์ด๋ฏธ์ง๋ฅผ ๋น๋ํ๋ ๋ฐ ํ์ํ ์ค์ ์ ๋๋ค. context: ./database: ..

gradle์ ์ถ๊ฐ // dotenv-java implementation 'io.github.cdimascio:java-dotenv:+' . envํ์ผ ์์ฑํ์ฌ ์ต์๋จ์ ๋ฃ๊ธฐ GOOGLE_MAP_API_KEY=apikey . gitignore๋ก. envํ์ผ ๋ฑ๋ก # Ignore .env files .env ์๋์ ๊ฐ์ด ๋ฑ๋ก๋ secretKey ์ฌ์ฉ private static Dotenv dotenv = Dotenv.load(); private static final String API_KEY = dotenv.get("GOOGLE_MAP_API_KEY"); application.yml ํ์ผ์ import: optional:file:.env[.properties] ํญ๋ชฉ ์ถ๊ฐ spring: profiles: ..

^ ์์์ ์๋ฏธํจ ex) ^[.] ->.๋ก ์์ํ๋ค๋ฉด.. String string = "...!@BaT#*..y.abcdefghijklm"; string = string.replaceAll("^[.]", "X"); System.out.println(string); // -> X..!@BaT#*..y.abcdefghijklm ^a -> a๋ก ์์ํ๋ค๋ฉด.. String string1 = "apple"; string1 = string1.replaceAll("^a","X"); System.out.println(string1); // -> Xpple; ์ฃผ์ํ ์ ์ ๊ดํธ [] ์์ ^๊ฐ ์๋ค๋ฉด ๋ถ์ ์ ์๋ฏธ๋ก ์ฌ์ฉ๋ฉ๋๋ค. [^.] ->. ์ด ์๋๋ผ๋ฉด.. String string = "...!@BaT#*..y.abcd..