spring-boot-starter-thymeleaf:3.1.32, Webflux, template name inference from uri path
eastoid opened this issue · 0 comments
eastoid commented
hello, im having issues with thymeleaf automatically selecting template name for a sub path. '/a' correctly serves a template with a name i defined, but '/a/b' tries to return a template called a/b - despite a Rendeing view being defined.
Dependencies:
runtimeOnly("org.postgresql:r2dbc-postgresql")
implementation("org.springframework.boot:spring-boot-starter-data-r2dbc")
implementation("com.google.code.gson:gson:+")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor")
implementation("commons-net:commons-net:+")
Example Controller:
@Controller
class ExampleController {
@GetMapping("/a/b")
fun exampleMapping(): Rendering? {
return Rendering.view("templateName").build()
}
}