SpringMVC执行流程和原理 SpringMVC流程: 01、用户发送出请求到前端控制器DispatcherServlet。 02、DispatcherServlet收到请求调用HandlerMapping(处理器映射器)。 03、HandlerMapping找到具体的处理器(可查找xml配置或 ...
分类:
编程语言 时间:
2020-07-05 13:35:09
阅读次数:
81
pom.xml文件报错 { Failure to transfer org.springframework.boot:spring-boot-maven-plugin:pom:2.1.0.RELEASE from http://maven.aliyun.com/nexus/content/group ...
分类:
其他好文 时间:
2020-07-04 20:38:56
阅读次数:
61
Spring读取配置的两种方式 注解的方式 ApplicationContext ac=new AnnotationApplicationContext("MyConfig.class") package com.example.demo; import org.springframework.co ...
分类:
编程语言 时间:
2020-07-04 18:58:16
阅读次数:
59
报错详情org.springframework.dao.DataIntegrityViolationException: ### Error updating database. Cause: java.sql.SQLException: Data truncated for column 'use ...
分类:
数据库 时间:
2020-07-04 15:34:17
阅读次数:
221
1、热部署 修改完代码,想让SpringBoot自动加载我们修改的内容(pom.xml添加依赖) <!-- spring-boot的开发工具,可以在修改代码时,不需要手动重启服务器 --> <dependency> <groupId>org.springframework.boot</groupId ...
分类:
编程语言 时间:
2020-07-04 13:29:16
阅读次数:
108
一.消息发送端 pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> </dependency> application.y ...
分类:
编程语言 时间:
2020-07-03 21:42:43
阅读次数:
76
1、pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> </dependency> <dependency> <group ...
分类:
编程语言 时间:
2020-07-03 21:01:25
阅读次数:
57
springboot的Web开发 web开发我们需要导入的两个依赖有: thymeleaf 和 Spring Web <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-th ...
分类:
编程语言 时间:
2020-07-03 19:07:25
阅读次数:
55
引入maven <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> 单 ...
分类:
编程语言 时间:
2020-07-03 12:37:32
阅读次数:
101
1.pom添加热部署 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> 2.File->Settings->Comp ...
分类:
编程语言 时间:
2020-07-03 12:24:41
阅读次数:
60