![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java后台开发
~执着~❥
android开发,喜欢钻研新知识
展开
-
mybaits-generator生成带分页的xml,解决Cannot instantiate object of type org.mybatis.generator.plugins异常
1.友情提醒 如果撸友们觉得下面的具体操作比较麻烦,我这里给大家提供一个已经封装好分页的 mybatis-generator-core-1.3.2.jar包。只需把你们maven仓库中的这个jar包替换成我这个。 然后在generatorConfig.xml中加入:<plugin type="org.mybatis.generator.plugins.MySQLPaginati...原创 2018-04-26 17:34:39 · 7835 阅读 · 0 评论 -
第一章:搭建springboot+MyBatis开发框架之创建springboot项目
1.下载JDK,配置JDK环境变量(不会的同学可以去百度,有很多教程),我的项目时安装jdk1.8版本的2.打开intellij开发工具,新建一个springboot项目,Project SDK选择之前安装好的jdk路径,如图 3.点击下一步,填写包名(Group),项目名(Artifact) 4.点击下一步 4.1.选择web 4.2.点...原创 2018-08-01 14:54:44 · 217 阅读 · 0 评论 -
第二章:启动springboot,输出 hellow springboot
1.新建一个controller包,新建一个test测试类,使用@RestController进行注解,表示是一个controller,使用注解@RequestMapping设置请求路径,点击运行项目中springbootboot启动类,如图则表示启动成功 然后在网页中输入http://localhost:8080/hellow 即可访问到此方法,@RestControllerpubl...原创 2018-08-01 15:38:26 · 300 阅读 · 0 评论 -
第五章:springboot+mybatis框架之配置启动https,同时支持http
1.生成证书,可以使自签名或者从SSL证书授权中心获得的。JDK中keytool是一个证书管理工具,可以生成自签名证书。点击开始,输入cmd进入命令页,输入 keytool -genkey -alias foot -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650 按回车键进入下一...原创 2018-08-06 11:00:17 · 550 阅读 · 0 评论 -
第三章:springboot+MyBatis项目配置
一.打开pom.xml中进行mysql配置 <!--mysql jdbc驱动包配置--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactI...原创 2018-08-01 17:49:36 · 146 阅读 · 0 评论 -
第四章:springb+mybatis集成generator自动生成器
1.在resource下新建generatorConfig.xml,配置如下:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" ...原创 2018-08-01 18:01:29 · 139 阅读 · 0 评论