能生成xml文件 ,无法生成dao层接口和实体类
来源:5-9 mybatis三剑客之mybatis-generator配置
慕容9054781
2020-06-04
[INFO] Scanning for projects…
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com:mmall:war:1.0-SNAPSHOT
[WARNING] ‘build.plugins.plugin.version’ for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 264, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mmall Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] — mybatis-generator-maven-plugin:1.3.2:generate (default-cli) @ mmall —
[INFO] Connecting to the Database
log4j:WARN No appenders could be found for logger (org.mybatis.generator.internal.db.DatabaseIntrospector).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] Introspecting table mmall_shipping
[INFO] Introspecting table mmall_cart
[INFO] Introspecting table mmall_cart_item
[INFO] Introspecting table mmall_category
[INFO] Introspecting table mmall_order
[INFO] Introspecting table mmall_order_item
[INFO] Introspecting table mmall_pay_info
[INFO] Introspecting table mmall_product
[INFO] Introspecting table mmall_user
[INFO] Generating Record class for table mmall_shipping
[INFO] Generating Mapper Interface for table mmall_shipping
[INFO] Generating SQL Map for table mmall_shipping
[INFO] Generating Record class for table mmall_cart
[INFO] Generating Mapper Interface for table mmall_cart
[INFO] Generating SQL Map for table mmall_cart
[INFO] Generating Record class for table mmall_category
[INFO] Generating Mapper Interface for table mmall_category
[INFO] Generating SQL Map for table mmall_category
[INFO] Generating Record class for table mmall_order
[INFO] Generating Mapper Interface for table mmall_order
[INFO] Generating SQL Map for table mmall_order
[INFO] Generating Record class for table mmall_order_item
[INFO] Generating Mapper Interface for table mmall_order_item
[INFO] Generating SQL Map for table mmall_order_item
[INFO] Generating Record class for table mmall_pay_info
[INFO] Generating Mapper Interface for table mmall_pay_info
[INFO] Generating SQL Map for table mmall_pay_info
[INFO] Generating Record class for table mmall_product
[INFO] Generating Mapper Interface for table mmall_product
[INFO] Generating SQL Map for table mmall_product
[INFO] Generating Record class for table mmall_user
[INFO] Generating Mapper Interface for table mmall_user
[INFO] Generating SQL Map for table mmall_user
[INFO] Saving file ShippingMapper.xml
[INFO] Saving file CartMapper.xml
[INFO] Saving file CategoryMapper.xml
[INFO] Saving file OrderMapper.xml
[INFO] Saving file OrderItemMapper.xml
[INFO] Saving file PayInfoMapper.xml
[INFO] Saving file ProductMapper.xml
[INFO] Saving file UserMapper.xml
[INFO] Saving file Shipping.java
[INFO] Saving file ShippingMapper.java
[INFO] Saving file Cart.java
[INFO] Saving file CartMapper.java
[INFO] Saving file Category.java
[INFO] Saving file CategoryMapper.java
[INFO] Saving file Order.java
[INFO] Saving file OrderMapper.java
[INFO] Saving file OrderItem.java
[INFO] Saving file OrderItemMapper.java
[INFO] Saving file PayInfo.java
[INFO] Saving file PayInfoMapper.java
[INFO] Saving file Product.java
[INFO] Saving file ProductMapper.java
[INFO] Saving file User.java
[INFO] Saving file UserMapper.java
[WARNING] Table configuration with catalog null, schema null, and table mmall_cart_item did not resolve to any tables
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\pojo\Shipping.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao\ShippingMapper.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\pojo\Cart.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao\CartMapper.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\pojo\Category.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao\CategoryMapper.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\pojo\Order.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao\OrderMapper.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\pojo\OrderItem.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao\OrderItemMapper.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\pojo\PayInfo.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao\PayInfoMapper.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\pojo\Product.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao\ProductMapper.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\pojo\User.java was overwritten
[WARNING] Existing file C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao\UserMapper.java was overwritten
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.295s
[INFO] Finished at: Thu Jun 04 08:29:59 CST 2020
[INFO] Final Memory: 7M/144M
[INFO] ------------------------------------------------------------------------
1回答
-
同学,看日志: C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao\UserMapper.java
你进这个文件夹里面去看看:C:\Users\User\IdeaProjects\mmall.\src\main\java\com\mmall\dao
012020-06-05
相似问题