搭建
五天五夜
这个作者很懒,什么都没留下…
展开
-
spi机制包括maven依赖和动态插件的方式
spi动态加载插件原创 2023-01-13 17:29:56 · 226 阅读 · 0 评论 -
jenkins识别不了maven和java
jenkins识别不了mvn原创 2022-06-12 19:10:36 · 398 阅读 · 0 评论 -
spring boot返回值包装和全局异常捕获
1.返回值包装 public class Result { private int code; private String message; @JsonInclude(JsonInclude.Include.NON_NULL) private Object data; @JsonInclude(JsonInclude.Include.NON_DEFAULT) private long total; public Result() { }原创 2022-01-12 20:19:49 · 188 阅读 · 0 评论 -
springboot注解实体类校验参数
spring boot校验参数 导入依赖 <dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> </dependency> 接口中添加注解@Valid @PostMapping("add") @原创 2021-12-26 18:57:37 · 498 阅读 · 0 评论 -
【无标题】
springcloud的微服务springboot读取不到bootstrap.yml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bootstrap</artifactId> </dependency> ...原创 2021-12-16 22:43:01 · 324 阅读 · 0 评论 -
搭建springmvc(未完成)
1. pom <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.3.9</version> </dependency&g原创 2021-08-03 23:53:05 · 110 阅读 · 0 评论 -
centos7安装nginx
1.下载nginx安装包 http://nginx.org/ 2.上传解压 tar -zxvf nginx-1.21.1.tar.gz 3 . 编译 ./configure --prefix=/home/nginx-1.21.1 make make install 4.把conf文件夹下面的nginx.conf文件复制一份到sbin目录下 5.nginx启动,重启,删除等命令 nginx启动 ./nginx 指定配置文件启动 ./sbin/nginx -c conf/nginx.conf 重启 ng原创 2021-08-01 17:07:03 · 89 阅读 · 0 评论 -
vuecli4暂时解决方案,做备忘录,网上都太坑了,本来很简单
1.在main.js import axios from ‘axios’ const app = createApp(App) app.config.globalProperties.$axios = axios 2.使用 this.$axios.get(‘https:www.baidu.com’)原创 2021-07-08 11:10:06 · 62 阅读 · 0 评论 -
springboot整合thymeleaf
1. <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 2.application.yml spring: thymeleaf: prefix: classp原创 2020-12-17 09:54:22 · 76 阅读 · 0 评论 -
pagehelper和springboot混合使用
<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.3.0</version> </dependency> pagehelper: helper-dialect: mysql reasonabl原创 2020-12-03 10:27:40 · 239 阅读 · 0 评论 -
前后端分离,springboot与前端数据交互
==由于之前工作数据封装比较乱,所以才写的这边文章。 本意为记录一下以后便于查找。本文章只有后端部分。== 1.创建返回实体类 package com.boke.response; /** * @author Administrator */ public class RepsonseData<T> { /** * 返回的状态码 */ private int code; /** * 返回的信息 */ private原创 2020-06-04 10:12:42 · 1664 阅读 · 2 评论 -
idea+springboot+freemark+注解版mybatis
idea+springboot+freemark+注解版mybatis项目目录利用idea创建一个springboot创建之后pom配置application.propertiesfreemarkermybatis扩展application.properties代码mapper 项目目录 利用idea创建一个springboot 创建之后pom 去博客设置页面,选择一款你喜欢的代码片高亮样式...原创 2019-03-19 16:40:59 · 392 阅读 · 0 评论