自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 资源 (2)
  • 问答 (1)
  • 收藏
  • 关注

原创 前后端项目打包部署到Linux---tomcat

1、首先的话需要打包前端项目,我们使用npmrun build运行命令,然后会生成一个文件dist2、将上面文件夹放到桌面备用3、打包后台,需要改一些配置,首先是pom中引入依赖<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifac...

2021-07-04 20:25:26 645 1

原创 java 开发资源

开发资源

2022-09-09 17:14:21 227

原创 联通云图片上传官方文档

java 联通云上传文件官方文档

2022-09-09 14:22:20 592

原创 JPA编写增删改查+分页+模糊查询

实体类(student+clazz)package com.guyazhao.entity;import com.fasterxml.jackson.annotation.JsonIgnoreProperties;import lombok.Data;import lombok.experimental.Accessors;import javax.persistence.*;/** * @author 顾雅昭 * @create 2021-08-31 11:14 **/@En

2021-08-31 16:25:28 187

原创 Spring-cloud feign配置

第一步导入pom文件<?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 https://maven.apache.org/xs

2021-08-19 17:30:32 405

原创 Spring-cloud 集群配置

第一步我们先创建eureka服务中心下面是pom文件<?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 https://m

2021-08-19 17:22:47 259

原创 权限项目核心技术

前端编之前,我已经分享了路由器的配置,权限项目是基于路由器跳转而实现的红色方框中的是用路由器跳转的,点击之后我们可以看到基础的页面菜单管理左侧的导航栏是有联动效果的,然后下面上代码(第一部分是样式,第二部分是axios的传值方式)<el-aside width="200px"> <el-menu default-active="2" class="el-menu-vertical-demo

2021-07-02 21:04:40 334

原创 Vue配置动态路由

1.需要创建两个或更多页面2.在index.js的主页面下中配置如下内容 { path: '/', name: 'Routerclass', component: Routerclass, children:[ { path:'/list', name:'List', component:List, },{ path:'/roles', name:'Roles',

2021-06-28 14:56:48 760

原创 使用Java代码发送邮件

1.引入pom依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId></dependency>2.将配置加入配置文件#邮件的配置spring.mail.host=smtp.qq.com#发送的账户sprin

2021-06-27 20:28:37 197

原创 自定义starter-----图片上传

config:FileAutoConfiguration类@Configuration@EnableConfigurationProperties({FileProperties.class})public class FileAutoConfiguration { @Autowired private FileProperties fileProperties; public FilService filService(){ return new

2021-06-23 21:01:23 215

原创 编写唯一mysql脚本

drop PROCEDURE if EXISTS getSequence;drop TABLE if EXISTS tb_sequence;create PROCEDURE getSequence(in nus BIGINT)beginDECLARE seqid BIGINT DEFAULT 0;DECLARE datet VARCHAR(50) DEFAULT '';create table if not EXISTS tb_sequence(`i...

2021-06-10 09:15:45 118

原创 redis防止数据重复提交

Booleanname =redisTemplate.opsForValue().setIfAbsent(传过来的参数redis自动判断);设置数据有效时间这里可以不用设置(自己测试为了方便)redisTemplate.expire(key,30,TimeUnit.MINUTES);判断数据是否重复提交if(name){通过存存储到数据库当中}else{{不能重复提交}多数据提交异常处理在service实现类里的方...

2021-06-10 09:14:19 331

原创 前端项目部署和后端项目部署

vue涉及到一个跨域vue.config.js或者config/index.js里吧跨域中配置的反向代理localhost改成部署的ip和端口号,如果在后端springboot中配置的跨域也要吧localhost改成部署的ip和端口号vue打包部署运行命令cd到部署的该盘符下执行npm run buildspringboot打包在pom配置文件里添加打包插件<build><plugins><plugin>...

2021-06-10 09:13:12 998

原创 JVM堆内存溢出处理

1.设置最大堆内存 -Xmx256m2 设置初始化堆内存 -Xmx128m3设置年轻代堆内存 -Xmx64m

2021-06-10 09:12:38 114

原创 Bigdecimal的使用(加减乘除)

使用实例BigDecimalprice =vegtables.getPrice();加法new一个BigDecimal对象对象名叫做p2MathContest方法使用BigDecimaladd =p2.add(price,new MathContext(3("要保留的小数位"),RoundingMode.HALF_HP("向上取整")));setScale()方法使用和保留有效数字BigDecimaladd =p2.add(price).setScale("保留的小数...

2021-06-10 09:09:56 170

原创 前后端分离Cookie跨域处理

找到vue里main.js把允许Cookieaxios.defaults.withCredentials=trueSpringboot后端处理新建一个xxx.xxx.xxx.config配置包@Overridepublic void addCorsMappings(CorsRegistry registry) {registry.addMapping("/**").allowCredentials(true)...

2021-06-10 09:08:49 104

原创 vue 前端vue.conf

module.exports = {devServer: {//以上的ip和端口是我们本机的;下面为需要跨域的proxy: {'/api': { // 拦截以 /api 开头的接口target: 'http://localhost:('自己后台端口号')/',//设置你调用的接口域名和端口号 别忘了加httpchangeOrigin: true, //这里...

2021-06-10 09:07:42 360

原创 Mysql存储过程唯一编号脚本

drop PROCEDURE if EXISTS getSequence;drop TABLE if EXISTS tb_sequence;create PROCEDURE getSequence(in nus BIGINT)beginDECLARE seqid BIGINT DEFAULT 0;DECLARE datet VARCHAR(50) DEFAULT '';create table if not EXISTS tb_sequence(`i...

2021-06-10 09:06:26 159

AnyUtils.java

AnyUtils.java

2021-06-09

test-zbf-yun-server.zip

运行接口就可以

2021-06-09

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除