inflearn logo
강의

Course

Instructor

Spring-based REST API development

Building Spring REST Docs Documentation

docs 요청값이 반영이 안되네요... (해결)

390

deokgoni

8 asked

-1

docs 화면이 이상합니다..

<plugin>
    <groupId>org.asciidoctor</groupId>
    <artifactId>asciidoctor-maven-plugin</artifactId>
    <version>2.1.0</version>
    <executions>
        <execution>
            <id>generate-docs</id>
            <phase>prepare-package</phase>
            <goals>
                <goal>process-asciidoc</goal>
            </goals>
            <configuration>
                <backend>html</backend>
                <doctype>book</doctype>
            </configuration>
        </execution>
    </executions>
    <dependencies>
        <dependency>
            <groupId>org.springframework.restdocs</groupId>
            <artifactId>spring-restdocs-asciidoctor</artifactId>
            <version>2.0.2.RELEASE</version>
        </dependency>
    </dependencies>
</plugin>
<plugin>
    <artifactId>maven-resources-plugin</artifactId>
    <version>3.1.0</version>
    <executions>
        <execution>
            <id>copy-resources</id>
            <phase>prepare-package</phase>
            <goals>
                <goal>copy-resources</goal>
            </goals>
            <configuration>
                <outputDirectory>
                    ${project.build.outputDirectory}/static/docs
                </outputDirectory>
                <resources>
                    <resource>
                        <directory>
                            ${project.build.directory}/generated-docs
                        </directory>
                    </resource>
                </resources>
            </configuration>
        </execution>
    </executions>
</plugin>

이 경로에서는

잘 나옵니다...

그런데...

http://localhost:8080/docs/index.html

으로 접속했을 때 저렇게 깨져서 나오네요...

 

 --------------------------------------------------

해결했습니다.

설정문제였네요..

아래처럼 변경하시면 잘 반영됩니다.

참고하세요 ! 화이팅!

 

 

spring rest-api java

Answer 1

0

whiteship

감사합니다.

Spring 시큐리티 관련해서 WebSecurityConfigurationAdapter

0

71

1

junit5 사용하시는 분들

0

85

1

자바 빈 스펙을 준수하는지 체크하는 테스트

0

233

2

REST API 개발 중 비즈니스 로직 적용 부분의 JSON 에러

0

241

1

스프링 부트 3버전에서의 실습

0

188

1

java.lang.AssertionError: Status

0

528

2

spring doc 관련 파일 생성 관련 배포 관련 질문 드립니다.

0

284

1

섹션2 201응답받기 부분 테스트 404에러 질문입니다

0

737

1

강의 자료가 404입니다 확인 부탁 드려요!

0

474

1

연동 DB문의

0

356

1

이벤트 Repository강의 중 Event 클래스에 private Integer Id; 위치 질문

0

503

1

(Mac) postgressql 관련하여 port kill 해도 다시 살아나는 경우

0

378

0

maven으로 생성한 docs파일(index.html)에서의 not found 오류 질문

0

620

1

테스트 오류 질문드립니다.

0

510

1

psql 적용 후 에러

0

816

2

mvn package 시 다음과 같은 에러가 나시면

0

760

2

Event에 Account manager를 추가했으면 문서화 필요

0

272

1

2년 훨씬 전 부터 Restlet-> Talend API 로 바뀌었습니다~

1

472

1

asciidoc 추가 스니펫 에러 해결법

0

397

1

_links 는 현재 fieldWithPath 를 해주지 않아도 됩니다.

0

420

3

깃랩 처음 사용자를 위한 index.adoc raw 보는 법

0

328

1

eclipse 쓰시는 분을 위한 maven-resources-plugin 팁

0

329

1

부트 + jupiter 인 경우 설정법

0

340

1

혹여 기선님 말 안 듣고 gradle로 프로젝트 생성했다가 피똥싸고 계신 분들을 위하여

2

386

1