创建名为“transactionmanager”的 bean 时出错与春罗
这是我用来创建 spring roo 应用程序的脚本:
// Spring Roo 1.1.5.RELEASE [rev d3a68c3] log opened at 2011-11-21 11:16:11
project --topLevelPackage school.javafinal
persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
entity --class ~.model.Brand
field string --fieldName name --sizeMax 70
entity --class ~.model.Category
field string --fieldName name --sizeMax 70
entity --class ~.model.Comment
field string --fieldName content --sizeMax 2000
field date --fieldName created_on --type java.util.Date
entity --class ~.model.Orders
field date --fieldName created_on --type java.util.Date
field number --fieldName price --type java.lang.Float
entity --class ~.model.OrderDetails
field date --fieldName created_on --type java.util.Date
entity --class ~.model.OrderStatuses
enum type --class ~.model.EOrderStatus
enum constant --name Pending
enum constant --name Denied
enum constant --name Complete
field enum --fieldName status --type ~.model.EOrderStatus
entity --class ~.model.Product
field date --fieldName created_on --type java.util.Date
field string --fieldName name --sizeMax 100
field string --fieldName imageUrl --sizeMax 1000
field string --fieldName specs --sizeMax 4000
field string --fieldName description --sizeMax 4000
field string --fieldName warranty --sizeMax 100
field number --fieldName price --type java.lang.Float
field number --fieldName quantity --type java.lang.Short
field number --fieldName rate --type java.lang.Float --decimalMax 5
// Reference
focus --class ~.model.Product
field set --fieldName comments --type ~.model.Comment --cardinality ONE_TO_MANY --mappedBy product
focus --class ~.model.Orders
field reference --class ~.model.Orders --fieldName status --type ~.model.OrderStatuses
field reference --class ~.model.Product --fieldName status --type ~.model.Brand
当我使用 mvn jetty:run 运行应用程序时,我在上下文初始化中遇到错误:
创建名为“transactinmanager”的 bean 时出错
我该如何解决这个问题,非常感谢您阅读我的问题:)
This is a the script I use to create my spring roo app :
// Spring Roo 1.1.5.RELEASE [rev d3a68c3] log opened at 2011-11-21 11:16:11
project --topLevelPackage school.javafinal
persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
entity --class ~.model.Brand
field string --fieldName name --sizeMax 70
entity --class ~.model.Category
field string --fieldName name --sizeMax 70
entity --class ~.model.Comment
field string --fieldName content --sizeMax 2000
field date --fieldName created_on --type java.util.Date
entity --class ~.model.Orders
field date --fieldName created_on --type java.util.Date
field number --fieldName price --type java.lang.Float
entity --class ~.model.OrderDetails
field date --fieldName created_on --type java.util.Date
entity --class ~.model.OrderStatuses
enum type --class ~.model.EOrderStatus
enum constant --name Pending
enum constant --name Denied
enum constant --name Complete
field enum --fieldName status --type ~.model.EOrderStatus
entity --class ~.model.Product
field date --fieldName created_on --type java.util.Date
field string --fieldName name --sizeMax 100
field string --fieldName imageUrl --sizeMax 1000
field string --fieldName specs --sizeMax 4000
field string --fieldName description --sizeMax 4000
field string --fieldName warranty --sizeMax 100
field number --fieldName price --type java.lang.Float
field number --fieldName quantity --type java.lang.Short
field number --fieldName rate --type java.lang.Float --decimalMax 5
// Reference
focus --class ~.model.Product
field set --fieldName comments --type ~.model.Comment --cardinality ONE_TO_MANY --mappedBy product
focus --class ~.model.Orders
field reference --class ~.model.Orders --fieldName status --type ~.model.OrderStatuses
field reference --class ~.model.Product --fieldName status --type ~.model.Brand
When I run the app with mvn jetty:run , I have the error in context initialization :
Error creating bean with the name 'transactinmanager'
How can I fix this, thanks so much for reading my question :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我按照 Spring CookBook 中的教程进行操作,看起来像
没有出现在最新的 spring-roo 中
I follow the tutorial in Spring CookBook and it looks like
does not appear in the latest spring-roo