Java Web Application. Spring Boot. Locating Images

前端 未结 1 1737
清酒与你
清酒与你 2021-01-20 09:42

I\'ve recently solved a problem of locating images in this community. You can look here.

However, one answer said:

Your app is a Spring Boot a

相关标签:
1条回答
  • 2021-01-20 10:26

    Spring Boot automatically configures production-ready settings and adds beans to your Spring project based on some dependencies that are declared in your maven/gradle build file. As long as you follow the conventions, then you do not have to do so much configuration -- "convention over configuration". For example, one convention is to load your images and static files in the resource classpath. Refer to the documentation: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/

    0 讨论(0)
提交回复
热议问题