GithubHelp home page GithubHelp logo

이미지 경로 이슈 about workcongw HOT 1 CLOSED

Ohsaam avatar Ohsaam commented on September 11, 2024
이미지 경로 이슈

from workcongw.

Comments (1)

Ohsaam avatar Ohsaam commented on September 11, 2024

해결

  • Context-Path를 고려하지 않았다. ㅜㅜ
<img src="<%=request.getContextPath() %>/images/WorkCon.png" alt="WorkCon Image"/>

이렇게 경로를 수정함. -> Context-path를 사용함.


당연히 Resources / images는 스프링부트에선 읽히는 줄 알고 이미지 경로를

<img src="/images/WorkCon.png" alt="WorkCon Image"/>

이렇게 적었다. 하지만, 당연히 Context-root도 인식하고 반영되는 줄 알았는데, 반영이 되지 않는 다는 것을 알게됐다.

이미지액박해결

from workcongw.

Related Issues (11)

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.