![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
m0_38056893
没怎么在用了,评论可能没回复
展开
-
Springboot运行报错 Failed to introspect annotated methods on class org.springframework.boot.web.servlet.
运行SpringBoot项目时候遇到如下错误:org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.xxx.xxx.XxxxApplication]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class原创 2021-01-19 21:52:28 · 4210 阅读 · 1 评论 -
SpringBoot使用easyexcel打印数据
1.初始化SpringBoot项目(1)在SpringBoot官网(https://start.spring.io/)初始化一个Springboot工程,然后点击Generate:(2)在IDEA中导入该项目,初始目录如下:(3)在pom.xml中添加easyexcel需要的依赖:<!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel --><dependency> ...原创 2020-12-17 09:45:35 · 1366 阅读 · 1 评论 -
MyBatis-plus使用
MyBatis-plus使用配置文件配置文件写在Springboot项目中test下的java代码中:package com.hlx.mbg;import com.baomidou.mybatisplus.generator.AutoGenerator;import com.baomidou.mybatisplus.generator.config.*;import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;原创 2020-12-04 16:15:21 · 100 阅读 · 0 评论 -
SpringBoot整合Mybatis注解实战(二)-- 实现简单的CRUD操作
1.代码实现目录结构:配置文件(1)pom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http原创 2020-11-25 16:11:36 · 195 阅读 · 0 评论 -
SpringBoot整合Mybatis注解实战(一)-- 插入数据
1.数据库数据表的创建(1)首先,在本地数据库中创建一个新数据库,再此命名为test_mybatis_1;创建一个数据表user,创建脚本如下:/* user表创建脚本 */CREATE TABLE `user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(128) DEFAULT NULL COMMENT '名称', `phone` varchar(16) DEFAULT NULL CO原创 2020-11-25 15:22:55 · 5722 阅读 · 2 评论 -
SpringBoot快速入门--(一)SpringBoot简介
1. 微服务(1)传统的项目应用:将很多功能放置到一个项目里。(2)微服务:一个项目可以由多个小型服务构成(每个小型项目就是微服务)。举例:提取每一个功能作为一个项目(如支付功能、订单功能都是各自一个独立的项目),多个项目间通过一些网络协议进行互通。每一个子模块就是一个微服务。(3)微服务特点:可替代性比较强。Spring Boot可以快速开发微服务。2. Spring官...原创 2019-05-28 15:56:36 · 225 阅读 · 0 评论 -
SpringBoot快速入门--(二)运行第一个SpringBoot应用程序
1. 进入Spring的官网,选择Project,点击里面的SpringBoot。2. 下拉到底部,选择Quick start中的Spring Initialize。3. 通过向导生成一个基础工程:4. 根据自己实际需求选定,这里选择导入web依赖,创建相应的maven工程。5. 点击生成项目,将压缩包放置桌面并解压:6. 打开...原创 2019-05-28 16:24:55 · 310 阅读 · 0 评论 -
SpringBoot快速入门--(三)编写一个SpringBoot的hello world(在浏览器界面显示hello world字符串)
(1)新建一个Controller类,放置在controller包下: package com.hong.HelloWorld.Controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestM...原创 2019-05-28 16:29:07 · 1989 阅读 · 0 评论