Giter Club home page Giter Club logo

chwijuntimeserver's People

Contributors

ksh030506 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

chwijuntimeserver's Issues

null 처리

            Tag tag = tagRepository.findByTagName(i);
            if(tag == null) {
                throw new NotFoundTagException();
            }

이 코드가 이곳 저곳 있는데 Optional로 처리해서 orElseThrow를 해도 되지 않을까요?

JwtAuthenticationFilter Exception 처리

  • Header에 Authorization 이 없는 경우에 Exception 처리는 어떻게 되는 걸까요?
  • jwtToken 값을 substring 해서 사용 하는데, jwt Token을 그냥 사용해도 되는 건가요??
    • 이 부분은 JwtTokenProvider 클래스 확인 하였습니다.
  • userEmail 을 Token 에서 가져왔다고 가정하더라도 User 정보에 해당 Email이 존재하지 않을 경우에도 Exception 처리가 필요해 보이네요.

Exception 처리 관련

Exception 마다 Class를 만들고 있는데요,
성격이 비슷한 Exception 끼리 묶고 자세한 내용은 Enum 을 만들어서 사용하는건 어떨까요??

예를들어, DataNotFoundException 을 만들고, 자세한 내용은 DataNotFoundType 이를 Enum으로 관리하는거죠.
방법이 정해진 것은 아니지만 관련 내용은 검색해보시면 자료 많이 나올거에요.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.