code i have controller method this: @requestmapping("/{userid}/{configid}") def edit(@pathvariable("userid") user user, @pathvariable("configid") configuration configuration) { /* code here*/ } when call method browser works well, , user, , configuration args bind database id. problem but, when used mvcuricomponentsbuilder class, got exceptions incorrect arguments type in expected method. mvcuricomponentsbuilder.frommethodname(mycontroller.class, "edit", 1, 2).build() exception java.lang.illegalargumentexception: source convert must instance of @org.springframework.web.bind.annotation.pathvariable user; instead java.lang.long faced body similar problem? there solution? note : i'm using spring web mvc 4.1.8.release a bit more descriptions i'm using mvcuricomponentsbuilder in thymeleaf template this: th:action="${#mvc.url('cc#edit').arg(0, configuration.access.id).arg(1, configurati...
Comments
Post a Comment