Spring rooでscriptコマンドを使用して、作業中のアプリケーションを作成しています。
これは私が使用しているrooスクリプトです。
project --topLevelPackage is.kdh.cyberdojo --projectName cyberdojo --java 6 --packaging WAR
jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
entity jpa --class ~.domain.Attendance --testAutomatically --table ATTENDANCE
field date --fieldName attended --type java.util.Date --notNull --column ATTENDED
entity jpa --class ~.domain.BarCode --testAutomatically --table BARCODE
entity jpa --class ~.domain.Person --testAutomatically --table PERSON
field string --fieldName socialSecurityNumber --sizeMax 10 --notNull --column SOCIAL_SECURITY_NUMBER --unique true
field string --fieldName name --sizeMax 128 --notNull --column NAME
field string --fieldName address --sizeMax 128 --notNull --column ADDRESS
field string --fieldName city --sizeMax 128 --notNull --column CITY
field string --fieldName phone --sizeMax 128 --notNull --column PHONE
field string --fieldName mobile --sizeMax 24 --notNull --column MOBILE
field string --fieldName email --sizeMax 128 --notNull --column EMAIL
field date --fieldName created --type java.util.Date --notNull --column CREATED
field date --fieldName modified --type java.util.Date --notNull --column MODIFIED
field boolean --fieldName active --column ACTIVE --notNull --value true
field string --fieldName registrationNumber --column REGISTRATION_NUMBER --notNull --sizeMax 10
field string --fieldName comments --column COMMENTS --sizeMax 4096
field reference --fieldName parent --type is.kdh.cyberdojo.domain.Person --cardinality MANY_TO_ONE
field reference --fieldName barCode --type is.kdh.cyberdojo.domain.BarCode --cardinality ONE_TO_ONE
entity jpa --class ~.domain.Course --testAutomatically --table COURSE
field string --fieldName name --sizeMax 128 --notNull --column NAME
field string --fieldName description --sizeMax 2048 --notNull --column DESCRIPTION
field boolean --fieldName active --notNull --column ACTIVE
field date --fieldName validFrom --type java.util.Date --notNull --column VALID_FROM
field date --fieldName validTo --type java.util.Date --notNull --column VALID_TO
field number --fieldName occurrence --type int --notNull --column OCCURRENCE
field set --fieldName instructors --type is.kdh.cyberdojo.domain.Person
entity jpa --class ~.domain.UserType --testAutomatically --table USERTYPE
field string --fieldName name --sizeMax 128 --notNull --column NAME
test integration
perform tests
web jsf setup --implementation APACHE_MYFACES --theme EGGPLANT
web jsf all --package ~.jsf
logging setup --level WARN --package WEB
perform eclipse
security setup
quit
セキュリティ設定コマンドに到達するまではすべて問題ありません。その後、スクリプトの実行は中止されます。
rooが出力するメッセージは
Command 'security setup' was found but is not currently available (type 'help' then ENTER to learn about this command)
スプリングセキュリティとjsfを一緒に使用することが可能であることを私は知っています。rooスクリプトの設定方法に何か問題がありますか?
ところで:jsfの代わりにmvcを使用すると、Springのセキュリティが適切に設定され、すべてが正常に機能します。