Skip to content

Commit

Permalink
[Feat] Layered 아키텍처 구축
Browse files Browse the repository at this point in the history
  • Loading branch information
isExample committed Aug 15, 2023
1 parent 8b59f0f commit c6d36f3
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ out/

### VS Code ###
.vscode/

### Spring Boot ###
src/main/resources/application.properties
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ repositories {
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'mysql:mysql-connector-java:8.0.25'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package HeyPorori.transaction.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/transactions")
public class TransactionController {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package HeyPorori.transaction.repository;

import HeyPorori.transaction.domain.Recommend;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface RecommendRepository extends JpaRepository<Recommend, Long> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package HeyPorori.transaction.repository;

import HeyPorori.transaction.domain.TransactionAttach;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface TransactionAttachRepository extends JpaRepository<TransactionAttach, Long> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package HeyPorori.transaction.repository;

import HeyPorori.transaction.domain.Transaction;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface TransactionRepository extends JpaRepository<Transaction, Long> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package HeyPorori.transaction.service;

import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
@Transactional
public class TransactionService {
}
1 change: 0 additions & 1 deletion src/main/resources/application.properties

This file was deleted.

0 comments on commit c6d36f3

Please sign in to comment.