java - Is there a way to disable Thymeleaf, or only enable for certain REST Calls? -




for instance, have basic post returns html called "result" using thymeleaf. works , cool.

@postmapping("/greeting") public string greetingsubmit(@modelattribute greeting greeting) {     return "result"; } 

but have totally unrelated method, different, , returns not template.

    @postmapping(value = "/otherstuff", headers = "content-type=multipart/*")     public object otherstuff( @requestparam("file") multipartfile datafile ) = {    //totally unrelated stuff     return resultlist; 

naturally, exception:

org.thymeleaf.exceptions.templateinputexception: error resolving template "/otherstuff", template might not exist or might not accessible of configured template resolvers  

because i'm intentionally not resolving template. can turn off thyme leaf method? rest api multi-purpose, , rather unhelpful if thyme leaf ends disrupting whole project.

thanks





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -