Easycode自动化springboot中curd是怎么样的(easycode,springboot,开发技术)

时间:2024-04-29 08:00:10 作者 : 石家庄SEO 分类 : 开发技术
  • TAG :

Easycode自动化springboot中curd是怎么样的

只需要输入密码 测试即可:

Easycode自动化springboot中curd是怎么样的

显示成功 个人连接时遇到问题有
显示时区问题

Easycode自动化springboot中curd是怎么样的

数据显示不全 所有数据表都会展示到idea

Easycode自动化springboot中curd是怎么样的

Easycode自动化springboot中curd是怎么样的

中间 path 选择代码生成的位置 店家choose进行选择 选择java包下的路径

Easycode自动化springboot中curd是怎么样的

代码生成后 需要做的调整

pom.xml

<dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-boot-starter</artifactId><version>2.2.1</version></dependency><!--测试依赖--><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.13</version><scope>test</scope></dependency><!--springboot分页插件--><dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-starter</artifactId><version>1.2.13</version></dependency><!--mysql驱动--><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>8.0.25</version></dependency><!--c3p0数据源--><dependency><groupId>com.mchange</groupId><artifactId>c3p0</artifactId><version>0.9.5.5</version></dependency><!--StringUtils--><dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><!--当前这个项目被继承之后,这个不向下传递--><optional>true</optional></dependency><dependency><groupId>org.springframework.data</groupId><artifactId>spring-data-commons</artifactId><version>2.2.3.RELEASE</version></dependency></dependencies>

Application.yml

##数据源配置spring:##热部署配置devtools:restart:enabled:true#设置重启的目录,添加目录的文件需要restartadditional-paths:src/main/java#解决项目自动重新编译后接口报404的问题poll-interval:3000quiet-period:1000datasource:type:com.mchange.v2.c3p0.ComboPooledDataSourcedriver-class-name:com.mysql.cj.jdbc.Driverurl:jdbc:mysql://127.0.0.1:3306/springboot_mybatis?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8username:rootpassword:123456##视图的配置freemarker:template-loader-path:classpath*:/views/charset:UTF-8content-type:text/htmlcache:falsesuffix:.ftl##mybatis配置mybatis:#映射文件的存放路径mapper-locations:classpath*:/mapper/*.xmltype-aliases-package:com.liuyang.bean,com.liuyang.vo,com.liuyang.queryconfiguration:##下划线转驼峰配置map-underscore-to-camel-case:true##pageHelperpagehelper:helper-dialect:mysql##显示dao执行sql语句logging:level:com:xxxx:mapper:debug在dao层加上@mapper注解

在启动类上加上 @MapperScan(“com.liuyang.dao”)

Easycode自动化springboot中curd是怎么样的

启动测试
添加操作

Easycode自动化springboot中curd是怎么样的

查询

Easycode自动化springboot中curd是怎么样的

还可以修改生成的模板

Easycode自动化springboot中curd是怎么样的

默认是 mybatis

 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:Easycode自动化springboot中curd是怎么样的的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:C++私有继承方法是什么下一篇:

12 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18