In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Easycode automation springboot curd is how, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian with you to understand.
Just enter the password to test:
Problems encountered when showing a successful personal connection are
Show time zone issu
Data display is not complete. All data tables are displayed in idea.
The middle path selects the location where the code is generated. The store choose selects the path under the java package.
Adjustments that need to be made after code generation
Pom.xml
Org.springframework.boot spring-boot-starter-web org.mybatis.spring.boot mybatis-spring-boot-starter 2.2.1 junit junit 4.13 test com.github.pagehelper Pagehelper-spring-boot-starter 1.2.13 mysql mysql-connector-java 8.0.25 com.mchange c3p0 0.9.5.5 org.apache.commons Commons-lang3 org.springframework.boot spring-boot-devtools true org.springframework.data spring-data-commons 2.2.3.RELEASE
Application.yml
# # data Source configuration spring: # # Hot deployment configuration devtools: restart: enabled: true # set the restart directory Adding directory files requires restart additional-paths: src/main/java # to solve the problem of interface report 404 after automatic recompilation of the project poll-interval: 3000 quiet-period: 1000 datasource: type: com.mchange.v2.c3p0.ComboPooledDataSource driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/springboot_mybatis?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT Configuration of% 2B8 username: root password: 123456 # # View freemarker: template-loader-path: classpath*:/views/ charset: UTF-8 content-type: text/html cache: false suffix: .ftl # # mybatis configuration mybatis: # the storage path of the mapping file mapper-locations: classpath*:/mapper/*.xml type-aliases-package: com.liuyang.bean Com.liuyang.vo,com.liuyang.query configuration: # # underline hump configuration map-underscore-to-camel-case: true## pageHelperpagehelper: helper-dialect: mysql## shows dao executes the sql statement logging: level: com: xxxx: mapper: debug adds @ mapper annotation to the dao layer
Add @ MapperScan ("com.liuyang.dao") to the startup class
Start the test
Add operation
Query
You can also modify the generated template
Default is mybatis
Thank you for reading this article carefully. I hope the article "how is curd in Easycode Automation springboot" shared by the editor will be helpful to you. At the same time, I also hope that you will support and follow the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.