简体   繁体   中英

ROO Annotations with SpringSource Tool Suite

How can I use/enable ROO annotations (I beleive it's using AspectJ?) inside a STS project?

For example, I want to use : @RooJavaBean for generating the getter/setter methods automagically.

(Maven is also "installed" in the project)

You need to create a Roo project and these annotations are handled for you automatically. You can do this through the New Roo project wizard:

File -> New... -> Spring Roo Project

You have to use the ROO shell for this and just follow the hints.

For example, to create a java bean with ROO annotations:

roo> entity --class ~.User --testAutomatically
roo> field string --fieldName name --notNull

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM