@RestController 注解 模板注解 @RequestMapping 提供路由信息 将请求与方法进行匹配 @EnableAutoConfiguration 基于添加的jar 由springboot 推测配置.eg :在添加了spring-boot-starter-web 的前提下,spri ...
分类:
编程语言 时间:
2020-06-03 00:22:35
阅读次数:
117
前言:今天在做修改操作的时候遇到了一个问题,数据回显到修改表单之后,发现无法输入,也不能实现修改 项目环境:springboot+vue前后端分离 问题:修改操作数据回显无法输入值 一、问题截图 二、代码展示 编辑按钮 <el-button type="text" size="small" @cli ...
分类:
其他好文 时间:
2020-06-02 13:30:19
阅读次数:
87
Springboot : 1、编写application.properties配置文件 #thymeleafspring.thymeleaf.cache=falsespring.thymeleaf.prefix=classpath:/templates/ // 配置视图解析器前缀路径spring.t ...
分类:
编程语言 时间:
2020-06-02 09:23:08
阅读次数:
140
一、SpringAOP应用 先搭建一个SpringBoot项目 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org ...
分类:
编程语言 时间:
2020-06-01 23:34:04
阅读次数:
58
背景: 部署项目到服务器,springboot启动报错: No bean named ‘org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available 解决: mysql ...
分类:
数据库 时间:
2020-06-01 21:09:25
阅读次数:
411
在Springboot 中依赖Gson,项目启动时报错: *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to c ...
分类:
编程语言 时间:
2020-06-01 20:58:27
阅读次数:
136
在使用SpringBoot 2.x版本时,原有springboot 1.x 版本的通过在表单中添加 input框隐藏域指定_method = put 的方式失效。 虽然浏览器传参的确是带上了这个参数,但是打断点会发现服务端依然走的是标注@PostMapping的Controller方法,而不是我们期 ...
分类:
编程语言 时间:
2020-06-01 12:20:52
阅读次数:
102
为了记录日志的使用常常需要写大量而又重复的代码,而通过注解的形式可以大量的减少代码量; 一.maven引入AOP的依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-a ...
分类:
编程语言 时间:
2020-06-01 00:59:10
阅读次数:
79
SprignBoot框架简介 本节主要简单介绍一下SpringBoot:除了它是SpringCloud的基础之外,也由于自身的各项优点,如自动配置、快速开发、轻松部署等,非常适合作为微服务架构中各项具体服务的构建单元。 SpringBoot除了解决配置问题之外,SpringBoot还通过一系列Sta ...
分类:
编程语言 时间:
2020-05-31 21:48:51
阅读次数:
93
【SpringBoot引入Druid数据源】 在整合Jdbc的工程基础上加入这个依赖 并注册一个配置类即可 maven坐标: <!-- https://mvnrepository.com/artifact/com.alibaba/druid --> <dependency> <groupId>com ...
分类:
编程语言 时间:
2020-05-31 21:47:58
阅读次数:
79