Giter Site home page Giter Site logo

jsboard's People

Contributors

cyber8756 avatar kagla avatar sora90224 avatar twinkleroot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

jsboard's Issues

그누보드5랑 달라진 DB 내용

  1. write 테이블 한 테이블로 가기.

  2. bo_id 컬럼 추가해서 PK를 변경 (bo_table -> bo_id)
    board

  3. bo_table -> bo_id 로 컬럼 변경
    board_file
    board_good
    write

  4. 삭제된 테이블
    board_new

  5. write 테이블에 컬럼 추가
    wr_notice - (공지사항 처리를 위해)

  6. config 테이블에 cf_id 추가해서 PK 설정( 자바 도메인 객체와 매핑시키기 위해)

개발시 참조 사항

  1. 사용자 정의 예외 처리
    ⑴ CustomException을 kr.sir.common.exception에 만든다.
    ExceptionHandlingController에 CustomException을 Handling할 수 있도록 추가한다.
    webapp/WEB-INF/jsp/error 아래에 Controller에서 view로 지정한 error 페이지를 만든다.
    실제 예외 처리하려는 코드에서 검사 조건을 넣고 해당 Exception에 Error Message를 넣고 throw 한다.
    Ex) if(minNum == 0) throw new FindException("error!!");

  2. 404, 500과 같은 HTTP RESPONSE 에러 처리 방법
    ⑴ ExceptionConfig 라는 설정 파일을 만든다.
    ⑵ ExceptionHandlingController에 위 파일에서 정한 요청경로로 RequestMapping을 정한다.
    ⑶ webapp/WEB-INF/jsp/error 아래에 Controller에서 view로 지정한 error 페이지를 만든다.

  3. logger 설정
    logger 사용하려는 곳에
    private static final Logger logger = (Logger) LoggerFactory.getLogger(InstallServiceImpl.class);
    추가한다.

    (Interface : slf4j, Class : logback)
    logger.debug(“”)로 local, test 서버에 로그를 표시한다.
    운영서버에 올라갈 로그는 logger.info(“”)로 남긴다.

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.