config: 프로젝트 모듈 이름 변경

This commit is contained in:
2026-02-03 16:12:37 +09:00
parent 8b2c747466
commit 1b8e8495b7
38 changed files with 82 additions and 75 deletions

View File

@@ -1 +1 @@
rootProject.name = 'boilerplate'
rootProject.name = 'hushroom'

View File

@@ -1,4 +0,0 @@
package com.boilerplate.core.auth.domain.repository;
public interface AccountQueryRepository {
}

View File

@@ -1,4 +1,4 @@
package com.boilerplate;
package com.hushroom;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.common;
package com.hushroom.common;
public record ApiResponse<T>(T data) {
public static <T> ApiResponse<T> ok(T data) {

View File

@@ -1,4 +1,4 @@
package com.boilerplate.common;
package com.hushroom.common;
import lombok.AllArgsConstructor;
import lombok.Builder;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.common;
package com.hushroom.common;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;

View File

@@ -1,6 +1,6 @@
package com.boilerplate.common;
package com.hushroom.common;
import com.boilerplate.core.auth.application.userDetail.User;
import com.hushroom.core.auth.application.userDetail.User;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.JwtException;
import io.jsonwebtoken.JwtParser;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.config.properties;
package com.hushroom.config.properties;
import java.time.Duration;
import lombok.Getter;

View File

@@ -1,6 +1,6 @@
package com.boilerplate.config.security;
package com.hushroom.config.security;
import com.boilerplate.common.TokenProvider;
import com.hushroom.common.TokenProvider;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;

View File

@@ -1,7 +1,7 @@
package com.boilerplate.config.security;
package com.hushroom.config.security;
import com.boilerplate.common.TokenProvider;
import com.boilerplate.config.properties.TokenProperties;
import com.hushroom.common.TokenProvider;
import com.hushroom.config.properties.TokenProperties;
import io.jsonwebtoken.JwtParser;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.io.Decoders;

View File

@@ -1,6 +1,6 @@
package com.boilerplate.config.security;
package com.hushroom.config.security;
import com.boilerplate.common.TokenProvider;
import com.hushroom.common.TokenProvider;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;

View File

@@ -1,6 +1,6 @@
package com.boilerplate.config.web;
package com.hushroom.config.web;
import com.boilerplate.common.ApiResponse;
import com.hushroom.common.ApiResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.MethodParameter;
import org.springframework.http.MediaType;

View File

@@ -1,6 +1,6 @@
package com.boilerplate.config.web;
package com.hushroom.config.web;
import com.boilerplate.common.GlobalExceptionResponse;
import com.hushroom.common.GlobalExceptionResponse;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

View File

@@ -1,14 +1,14 @@
package com.boilerplate.core.auth.api.controller;
package com.hushroom.core.auth.api.controller;
import com.boilerplate.core.auth.api.dto.req.LoginRequest;
import com.boilerplate.core.auth.api.dto.req.SignUpRequest;
import com.boilerplate.core.auth.api.dto.res.LoginResponse;
import com.boilerplate.core.auth.api.dto.res.SignUpResponse;
import com.boilerplate.core.auth.application.LoginUseCase;
import com.boilerplate.core.auth.application.RegisterUseCase;
import com.boilerplate.core.auth.application.dto.command.RegisterUseCaseCommand;
import com.boilerplate.core.auth.application.dto.result.LoginResult;
import com.boilerplate.core.auth.application.dto.result.RegisterUseCaseResult;
import com.hushroom.core.auth.api.dto.req.LoginRequest;
import com.hushroom.core.auth.api.dto.req.SignUpRequest;
import com.hushroom.core.auth.api.dto.res.LoginResponse;
import com.hushroom.core.auth.api.dto.res.SignUpResponse;
import com.hushroom.core.auth.application.LoginUseCase;
import com.hushroom.core.auth.application.RegisterUseCase;
import com.hushroom.core.auth.application.dto.command.RegisterUseCaseCommand;
import com.hushroom.core.auth.application.dto.result.LoginResult;
import com.hushroom.core.auth.application.dto.result.RegisterUseCaseResult;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;

View File

@@ -1,6 +1,6 @@
package com.boilerplate.core.auth.api.controller;
package com.hushroom.core.auth.api.controller;
import com.boilerplate.core.auth.application.userDetail.User;
import com.hushroom.core.auth.application.userDetail.User;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.api.dto.req;
package com.hushroom.core.auth.api.dto.req;
import lombok.Getter;
import lombok.Setter;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.api.dto.req;
package com.hushroom.core.auth.api.dto.req;
import lombok.AllArgsConstructor;
import lombok.Builder;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.api.dto.res;
package com.hushroom.core.auth.api.dto.res;
import lombok.AllArgsConstructor;
import lombok.Builder;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.api.dto.res;
package com.hushroom.core.auth.api.dto.res;
import lombok.AllArgsConstructor;
import lombok.Builder;

View File

@@ -1,8 +1,8 @@
package com.boilerplate.core.auth.application;
package com.hushroom.core.auth.application;
import com.boilerplate.common.TokenProvider;
import com.boilerplate.core.auth.application.dto.result.LoginResult;
import com.boilerplate.core.auth.domain.service.AccountService;
import com.hushroom.common.TokenProvider;
import com.hushroom.core.auth.application.dto.result.LoginResult;
import com.hushroom.core.auth.domain.service.AccountService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

View File

@@ -1,10 +1,10 @@
package com.boilerplate.core.auth.application;
package com.hushroom.core.auth.application;
import com.boilerplate.common.TokenProvider;
import com.boilerplate.core.auth.application.dto.command.RegisterUseCaseCommand;
import com.boilerplate.core.auth.application.dto.result.RegisterUseCaseResult;
import com.boilerplate.core.auth.domain.service.AccountService;
import com.boilerplate.core.exception.auth.ExistLoginIdException;
import com.hushroom.common.TokenProvider;
import com.hushroom.core.auth.application.dto.command.RegisterUseCaseCommand;
import com.hushroom.core.auth.application.dto.result.RegisterUseCaseResult;
import com.hushroom.core.auth.domain.service.AccountService;
import com.hushroom.core.exception.auth.ExistLoginIdException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.application.dto.command;
package com.hushroom.core.auth.application.dto.command;
import lombok.AllArgsConstructor;
import lombok.Builder;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.application.dto.result;
package com.hushroom.core.auth.application.dto.result;
import lombok.AllArgsConstructor;
import lombok.Builder;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.application.dto.result;
package com.hushroom.core.auth.application.dto.result;
import lombok.AllArgsConstructor;
import lombok.Builder;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.application.userDetail;
package com.hushroom.core.auth.application.userDetail;
import java.io.Serial;
import java.util.Collection;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.application.userDetail;
package com.hushroom.core.auth.application.userDetail;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.auth.domain.entity;
package com.hushroom.core.auth.domain.entity;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;

View File

@@ -0,0 +1,4 @@
package com.hushroom.core.auth.domain.repository;
public interface AccountQueryRepository {
}

View File

@@ -1,6 +1,6 @@
package com.boilerplate.core.auth.domain.repository;
package com.hushroom.core.auth.domain.repository;
import com.boilerplate.core.auth.domain.entity.Account;
import com.hushroom.core.auth.domain.entity.Account;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

View File

@@ -1,9 +1,9 @@
package com.boilerplate.core.auth.domain.service;
package com.hushroom.core.auth.domain.service;
import com.boilerplate.core.auth.domain.entity.Account;
import com.boilerplate.core.auth.domain.repository.AccountRepository;
import com.boilerplate.core.exception.auth.InvalidCredentialsException;
import com.boilerplate.core.exception.common.NotExistEntityException;
import com.hushroom.core.auth.domain.entity.Account;
import com.hushroom.core.auth.domain.repository.AccountRepository;
import com.hushroom.core.exception.auth.InvalidCredentialsException;
import com.hushroom.core.exception.common.NotExistEntityException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.crypto.password.PasswordEncoder;

View File

@@ -1,6 +1,6 @@
package com.boilerplate.core.auth.infra.repository;
package com.hushroom.core.auth.infra.repository;
import com.boilerplate.core.auth.domain.repository.AccountQueryRepository;
import com.hushroom.core.auth.domain.repository.AccountQueryRepository;
import com.querydsl.jpa.impl.JPAQueryFactory;
import lombok.RequiredArgsConstructor;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.exception.auth;
package com.hushroom.core.exception.auth;
import org.springframework.http.HttpStatus;
import org.springframework.http.ProblemDetail;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.exception.auth;
package com.hushroom.core.exception.auth;
import org.springframework.http.HttpStatus;
import org.springframework.http.ProblemDetail;

View File

@@ -1,4 +1,4 @@
package com.boilerplate.core.exception.common;
package com.hushroom.core.exception.common;
import org.springframework.http.HttpStatus;
import org.springframework.http.ProblemDetail;

View File

@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:mysql://localhost:3306/db?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Seoul
url: jdbc:mysql://localhost:3309/hushroom?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Seoul
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
@@ -20,8 +20,3 @@ token:
lifetime:
access-token: 365d
refresh-token: 365d
storage:
bucket: "audio-dev"
access-key: "corpi"
secret-key: "corpi7589"

View File

@@ -1,6 +1,6 @@
spring:
application:
name: boilerplate
name: hushroom
jpa:
hibernate:

View File

@@ -0,0 +1,12 @@
-- liquibase formatted sql
-- changeset corpi:1_create_account
CREATE TABLE account
(
id BIGINT AUTO_INCREMENT PRIMARY KEY,
login_id VARCHAR(255) NULL UNIQUE,
password_hash VARCHAR(255) NOT NULL,
name VARCHAR(255) NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
deleted TINYINT(1) NOT NULL DEFAULT 0
);

View File

@@ -1,4 +1,4 @@
package com.boilerplate;
package com.hushroom;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;