개발/java

    728x90
    반응형

    Retrofit으로 여러개의 API를 하나의 DTO 객체로 처리하는 방법

    Retorfit : Android와 Java에서 HTTP 통신을 위해 사용하는 라이브러리 Interface, Retrofit Class, Call로 구성됨 Interface : HTTP API 선언 Retrofit Class : Interface의 구현을 생성함 Call : Retrofit Class로 생성된 interface를 사용해서 생성함, 동기 or 비동기 HTTP 요청을 호출함 ● Interface public interface CounselApiInterface { @GET("selectCounselListApi") Call searchCounselList(@Query("page") int page, @Query("perPage") int perPage); } ● Retrofit Class, ..

    eclipse spotbugs (findbugs)

    예전에 정적 코드 분석기로 사용했었던 findbugs를 다시 사용해보려고 확인해봤는데 해당 프로젝트가 버려졌고 spotbugs로 fork된 프로젝트가 존재해서 spotbugs를 사용해봤다. eclipse 마켓플레이스에서 spotbugs로 검색을 해서 설치를 해준다.(findbugs로 검색해도 동일) 설치가 완료되면 eclipse를 재실행한후 분석을 하고자 하는 프로젝트를 우클릭 한 후 SpotBugs > Find Bugs를 클릭한다. 우측 하단에 분석이 진행중인것을 확인할수 있다. 분석결과는 Window > Perspective > Open Perspective > Other... 를 클릭 후 SpotBugs를 Open하면 확인할 수 있다. 심각도에 따라 Scariest > Scary > Troublin..

    728x90
    반응형