You should use "img/name.png"
# announcements
c
You should use "img/name.png"
g
yeah, doesn't seem to work. There doesn't appear to be any in images in the build folder.
c
build/resources/main
?
g
there is no resources forlder in build/main
build
c
If you want WebMVC to serve images you need to place them in
src/main/resources/static
g
ok, can I have subpathing in that?
static/logos? example
c
WebMVC will automatically serve static content from there.
g
hmm, interesting... i was kinda planning to use angular cli for the from end.
c
If you want to access Resources using ClasspathResource then classpath is relative to
src/main/resources
and
src/test/resources
g
Is there another method? serving up images used to be the easiest thing in the world, seems harder and more presumptuous in this environment 😃
Yeah, something isn't right. my gradle task processResources says NO-SOURCE even after changing to thte expect folder hierarchy
Trying to add it here without luck: sourceSets["main"].withConvention(KotlinSourceSet::class) { kotlin.srcDir("src/serverMain/kotlin") resources.srcDir("src/serverMain/resources") } sourceSets["test"].withConvention(KotlinSourceSet::class) { kotlin.srcDir("src/serverTest/kotlin") resources.srcDir("src/serverTest/resources") }
Solved it with this. gradle syntax is confusing.
Tried these but didn't work