Skip to content

Commit

Permalink
chore: 루트명 변경 (poten->bloom)
Browse files Browse the repository at this point in the history
  • Loading branch information
uz2ni committed Mar 29, 2024
1 parent 6be0384 commit a091be6
Show file tree
Hide file tree
Showing 32 changed files with 71 additions and 73 deletions.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'poten'
rootProject.name = 'bloom'
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.be.poten;
package com.be.bloom;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class PotenApplication {
public class BloomApplication {

public static void main(String[] args) {
SpringApplication.run(PotenApplication.class, args);
SpringApplication.run(BloomApplication.class, args);
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.common.exception;
package com.be.bloom.common.exception;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package com.be.poten.common.response;
package com.be.bloom.common.response;

import lombok.*;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.validation.ObjectError;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.be.poten.common.response;
package com.be.bloom.common.response;

import com.be.poten.common.exception.BaseException;
import com.be.bloom.common.exception.BaseException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.NestedExceptionUtils;
import org.springframework.http.HttpStatus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.config;
package com.be.bloom.config;

import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.jasypt.encryption.StringEncryptor;
Expand All @@ -10,6 +10,7 @@

@Configuration
@EnableEncryptableProperties

public class JasyptConfig {

@Value("${jasypt.encryptor.password}")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.config;
package com.be.bloom.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.be.poten.controller;
package com.be.bloom.controller;

import com.be.poten.common.response.ApiResponse;
import com.be.poten.dto.message.GetMessageResponseDto;
import com.be.poten.dto.message.MessageRequestDto;
import com.be.poten.dto.message.PostMessageResponseDto;
import com.be.poten.dto.message.UpdateMessageRequestDto;
import com.be.poten.service.MessageService;
import com.be.bloom.common.response.ApiResponse;
import com.be.bloom.dto.message.GetMessageResponseDto;
import com.be.bloom.dto.message.MessageRequestDto;
import com.be.bloom.dto.message.PostMessageResponseDto;
import com.be.bloom.dto.message.UpdateMessageRequestDto;
import com.be.bloom.service.MessageService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.be.poten.controller;
package com.be.bloom.controller;

import com.be.poten.service.TestService;
import com.be.bloom.service.TestService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.be.poten.domain;
package com.be.bloom.domain;

import com.be.poten.dto.ClovaRequestDto.PostClovaResponseDto;
import com.be.poten.dto.message.MessageRequestDto;
import com.be.poten.dto.message.UpdateMessageRequestDto;
import com.be.poten.utils.JsonUtils;
import com.be.poten.utils.StringUtils;
import com.be.bloom.dto.ClovaRequestDto.PostClovaResponseDto;
import com.be.bloom.dto.message.MessageRequestDto;
import com.be.bloom.dto.message.UpdateMessageRequestDto;
import com.be.bloom.utils.JsonUtils;
import com.be.bloom.utils.StringUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.dto.ClovaRequestDto;
package com.be.bloom.dto.ClovaRequestDto;

import lombok.Builder;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.dto.ClovaRequestDto;
package com.be.bloom.dto.ClovaRequestDto;

import lombok.AllArgsConstructor;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.dto.ClovaRequestDto;
package com.be.bloom.dto.ClovaRequestDto;

import lombok.Builder;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.dto.ClovaRequestDto;
package com.be.bloom.dto.ClovaRequestDto;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.dto.message;
package com.be.bloom.dto.message;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.dto.message;
package com.be.bloom.dto.message;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.be.poten.dto.message;
package com.be.bloom.dto.message;

import com.be.poten.domain.Message;
import com.be.bloom.domain.Message;
import lombok.AllArgsConstructor;
import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.dto.message;
package com.be.bloom.dto.message;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.be.poten.mapper;
package com.be.bloom.mapper;

import com.be.poten.domain.Message;
import com.be.poten.dto.message.GetMessageResponseDto;
import com.be.poten.dto.message.UpdateMessageRequestDto;
import com.be.bloom.domain.Message;
import com.be.bloom.dto.message.GetMessageResponseDto;
import org.apache.ibatis.annotations.Mapper;

@Mapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.mapper;
package com.be.bloom.mapper;

import org.apache.ibatis.annotations.Mapper;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package com.be.poten.service;

import com.be.poten.common.exception.BaseException;
import com.be.poten.domain.Message;
import com.be.poten.dto.ClovaRequestDto.ClovaRequest;
import com.be.poten.dto.ClovaRequestDto.ClovaRequestMessage;
import com.be.poten.dto.ClovaRequestDto.ClovaStudyRequest;
import com.be.poten.dto.ClovaRequestDto.PostClovaResponseDto;
import com.be.poten.dto.message.MessageRequestDto;
import com.be.poten.dto.message.GetMessageResponseDto;
import com.be.poten.dto.message.PostMessageResponseDto;
import com.be.poten.dto.message.UpdateMessageRequestDto;
import com.be.poten.mapper.MessageMapper;
import com.be.poten.utils.SignitureUtils;
package com.be.bloom.service;

import com.be.bloom.common.exception.BaseException;
import com.be.bloom.domain.Message;
import com.be.bloom.dto.ClovaRequestDto.ClovaRequest;
import com.be.bloom.dto.ClovaRequestDto.ClovaRequestMessage;
import com.be.bloom.dto.ClovaRequestDto.ClovaStudyRequest;
import com.be.bloom.dto.ClovaRequestDto.PostClovaResponseDto;
import com.be.bloom.dto.message.MessageRequestDto;
import com.be.bloom.dto.message.GetMessageResponseDto;
import com.be.bloom.dto.message.PostMessageResponseDto;
import com.be.bloom.dto.message.UpdateMessageRequestDto;
import com.be.bloom.mapper.MessageMapper;
import com.be.bloom.utils.SignitureUtils;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.be.poten.service;
package com.be.bloom.service;

import com.be.poten.dto.ClovaRequestDto.ClovaRequest;
import com.be.poten.dto.ClovaRequestDto.ClovaRequestMessage;
import com.be.poten.mapper.TestMapper;
import com.be.bloom.dto.ClovaRequestDto.ClovaRequest;
import com.be.bloom.dto.ClovaRequestDto.ClovaRequestMessage;
import com.be.bloom.mapper.TestMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.utils;
package com.be.bloom.utils;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonMappingException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.utils;
package com.be.bloom.utils;

import org.apache.tomcat.util.codec.binary.Base64;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten.utils;
package com.be.bloom.utils;

public final class StringUtils {

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ spring:

# Mybatis
mybatis:
type-aliases-package: com.be.poten.domain
type-aliases-package: com.be.bloom.domain
mapper-locations: mapper/*.xml
2 changes: 1 addition & 1 deletion src/main/resources/application-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ spring:

# Mybatis
mybatis:
type-aliases-package: com.be.poten.domain
type-aliases-package: com.be.bloom.domain
mapper-locations: mapper/*.xml
8 changes: 4 additions & 4 deletions src/main/resources/mapper/MessageMapper.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.be.poten.mapper.MessageMapper">
<mapper namespace="com.be.bloom.mapper.MessageMapper">

<insert id="insertMessage" parameterType="com.be.poten.domain.Message" useGeneratedKeys="true" keyProperty="messageId" keyColumn="message_id">
<insert id="insertMessage" parameterType="com.be.bloom.domain.Message" useGeneratedKeys="true" keyProperty="messageId" keyColumn="message_id">
insert into message (user_id, param_data, param_clova_data, result_data, result_row_data, is_renew)
values (null, #{paramData}, #{paramClovaData}, #{resultData}, #{resultRowData}, #{isRenew});
</insert>

<select id="getMessage" resultType="com.be.poten.dto.message.GetMessageResponseDto">
<select id="getMessage" resultType="com.be.bloom.dto.message.GetMessageResponseDto">
select message_id as messageId,
reg_date as regDate,
if(is_update = 'Y', result_update_data, result_data) as resultData
from message
where message_id = #{messageId};
</select>

<update id="updateMessage" parameterType="com.be.poten.domain.Message">
<update id="updateMessage" parameterType="com.be.bloom.domain.Message">
update message
set is_update = #{isUpdate},
result_update_data = #{resultUpdateData}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mapper/TestMapper.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.be.poten.mapper.TestMapper">
<mapper namespace="com.be.bloom.mapper.TestMapper">

<select id="getTestData" resultType="java.lang.String">
select 'testData'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.be.poten;
package com.be.bloom;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class PotenApplicationTests {
class BloomApplicationTests {

@Test
void contextLoads() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten;
package com.be.bloom;

import org.jasypt.encryption.pbe.StandardPBEStringEncryptor;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.be.poten;
package com.be.bloom;

import org.junit.jupiter.api.Test;

Expand Down

0 comments on commit a091be6

Please sign in to comment.