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
Post a Comment