sparta_blog's Issues
과제 피드백
과제 구현하시느라 고생 많으셨습니다. 피드백은 다음과 같습니다.
- 패키지 구조에서 공통으로 사용하는 entity, dto, service는 별도 패키지로 묶어주시면 좋을 것 같습니다. 현재 구조에서는 서비스 기준으로 패키지가 나눠져 있기 때문에 그에 맞게끔 같은 구조로 구성해주시는게 좋아보입니다. 이를테면, common/entity, common/dto ... 이런 식입니다.
- Service 로직에서 트랜잭션 관리가 안되어 있는 경우가 있는 것 같습니다. 회원가입에서 중복 회원이 있는지를 찾고, 없으면 저장하는 구조인데 2명 이상의 사용자가 동시에 같은 username으로 가입하는 경우 회원 중복 확인이 되지 않고, username이 같은 여러명의 회원이 동시에 가입될 수 있는 상황입니다. 물론 이는 애플리케이션 기준에서 말씀드린 것이고, 실제로는 DB에서 username을 unique key로 잡아놔서 중복으로 가입은 안되겠지만, 이렇게 DB에서 데이터를 가지고 온 뒤 업데이트를 하는 작업의 경우 되도록 application 레벨에서
@Transactional
로 잡아주셔야 합니다. - Exception에서
GlobalException
이 아니라GlobalExceptionHandler
가 되어야 할 것 같습니다.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.