Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring-boot-starter-thymeleaf:3.1.32, Webflux, template name inference from uri path #315

Open
eastoid opened this issue Sep 9, 2023 · 0 comments

Comments

@eastoid
Copy link

eastoid commented Sep 9, 2023

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()
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant