创建名为“transactionmanager”的 bean 时出错与春罗

发布于 2024-12-17 08:26:58 字数 1982 浏览 7 评论 0原文

这是我用来创建 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冰葑 2024-12-24 08:26:58

我按照 Spring CookBook 中的教程进行操作,看起来像

--映射者

没有出现在最新的 spring-roo 中

I follow the tutorial in Spring CookBook and it looks like

--mappedBy

does not appear in the latest spring-roo

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文