Get the App
SLTechnology News&Howtos  ›  Development  › 

What is curd like in Easycode Automation springboot

Shulou Source: shulou.com Published: 2022-06-01 23:48:15 10月03日 Update

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!

Tags: Configuration articles data questions generation selection automation code code generation files directories paths tests success underlining personal value location interests and at the same time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Tech Info Huawei MariaDB vpn