开发者

Spring Roo finder issue

I have followed Spring Roo tutorial (by Ben Alex). Until create finder everything went fine. When I am create finder It won't generate generate relevent JSP file. it only update java and .aj file. What kind of issue this can be?

~.domain.Rsvp roo> controller class --class ~.web.PublicRsvpController
Created SRC_MAIN_JAVA\com\wedding\web\PublicRsvpController.java
Updated SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties
Created SRC_MAIN_WEBAPP\WEB-INF\views\publicrsvp
Created SRC_MAIN_WEBAPP\WEB-INF\views\publicrsvp\views.xml
Created SRC_MAIN_WEBAPP\WEB-INF\views\publicrsvp\index.jspx
Updated SRC_MAIN_WEBAPP\WEB-INF\views\menu.jspx
~.domain.Rsvp roo> finder list --class ~.domain.Rsvp --filter code,equ
findRsvpsByAttendingEquals(Integer attending)
findRsvpsByAttendingGreaterThanEquals(Integer attending)
findRsvpsByAttendingLessThanEquals(Integer attending)
findRsvpsByAttendingNotEquals(Integer attending)
findRsvpsByCodeEquals(String code)
findRsvpsByCodeIsNotNull()
findRsvpsByCodeIsNull()
findRsvpsByCodeLike(String code)
findRsvpsByCodeNotEquals(String code)
findRsvpsByConfirmedEquals(Date confirmed)
findRsvpsByConfirmedGreaterThanEquals(Date confirmed)
findRsvpsByConfirmedLessThanEquals(Date confirmed)
findRsvpsByConfirmedNotEquals(Date confirmed)
findRsvpsByEmailEquals(String email)
findRsvpsByEmailNotEquals(String email)
findRsvpsBySpecialRequestsEquals(String specialRequests)
findRsvpsBySpecialRequestsIsNotNull()
findRsvpsBySpecialRequestsIsNull()
findRsvpsBySpecialRequestsLike(String specialRequests)
findRsvpsBySpecialRequestsNotEquals(String specialRequests)

~.domain.Rsvp roo> finder add --finderName findRsvpsByCodeEquals
Updated SRC_MAIN_JAVA\com\wedding\domain\Rsvp.ja开发者_如何学Gova
Created SRC_MAIN_JAVA\com\wedding\domain\Rsvp_Roo_Finder.aj

~.domain.Rsvp roo>


In Roo 1.1.2 is a Bug [#ROO-2108] that does not generate JSPs for Finder.

And in 1.1.4 there is an other bug: [#ROO-2480]

But it is fixed in newer Version.


I faced the same problem.

It was just missing this roo command: web mvc finder all

That adds all the necessary finders (:


This is was Spring Roo document problem, They haven't update their document for Spring Roo 1.2.0 related API changes.


web mvc finder all is the solution for this. It worked for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜