- 博客(37)
- 问答 (1)
- 收藏
- 关注
原创 java+jedis实现简陋验证方式
package com.sdbairui.demo.jwt.Controller;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.ResponseBody;import redis.clients.jedis.Jedis;impo
2020-12-17 10:45:13 198
原创 java+jedis实现阿里云短信验证
前台页面:<!DOCTYPE html><html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewpor.
2020-12-17 10:43:51 276 1
原创 jeefast中在显示页面使用下拉框联动查询
1.修改html:使其加入下拉框,效果图如下:具体代码修改如下:<div v-show="showList"> <div class="grid-btn"> <div class="form-group col-sm-2"> <input type="text" class="form-control" v-model="q.title" @keyup.enter="query" pla
2020-10-29 11:24:46 308
原创 jeefast中实现年级、班级联动,选择17级显示17级中的班级等
第一步:首先需要实现年级下拉框查询:在controller中:此处的方法使用的iservice中的方法 @RequestMapping("/findAll") @RequiresPermissions("platform:grade:findAll") public R findAll(){ Map<String,Object> map = new HashMap<>(); List<PfGrade> list = .
2020-10-27 11:39:31 451
原创 springboot+jpa完成多对一
实体类中: @ManyToOne(targetEntity = Classes.class) //第一个name为本表的外键,referencedColumnName为classes表的主键 @JoinColumn(name = "scid",referencedColumnName = "cid",insertable = false,updatable = false) private Classes classes;控制器:直接使用jpa中的findAll方法 .
2020-10-03 16:27:41 226
原创 BootstrapFileInput 图片上传默认显示功能
1.默认情况下我赋给这个组件的属性:$(".myfile").fileinput({ uploadUrl: ctx + "common/upload", //接受请求地址 deleteUrl: ctx + "common/delete", uploadAsync : true, //默认异步上传 sh...
2020-04-16 09:52:39 2198 2
原创 接触若依fast框架---搭建若依fast 学生图片-bootstarp-fileinput
添加页面:add.html需引入: <th:block th:include="include :: bootstrap-fileinput-css" /> <th:block th:include="include :: bootstrap-fileinput-js" />2.add.html页面前台<div class="form-gr...
2020-04-13 11:26:46 779 1
原创 jeefast实现一对多
1.效果图:2.postman查询出来的数据3.mapper<resultMap id="BaseResultMap" type="cn.jeefast.modules.platform.entity.PfClass"> <id column="cid" property="cid" /> <result column="cname" propert...
2020-03-19 11:18:58 324
原创 下拉框查询其他表的数据
1.html注意:vue绑定一定要使用student.sclass<div class="form-group"> <div class="col-sm-2 control-label">班级</div> <div class="col-sm-10"> ...
2020-03-18 17:31:21 359
原创 jeefast使用一对一方式完成表连接(学生显示班级名称)
1.写好班级表实体2.再学生实体中加入一个属性:private PfClass pfClass; public PfClass getPfClass() { return pfClass; } public void setPfClass(PfClass pfClass) { this.pfClass = pfClass; }3.再xml中进行修改之前的:<r...
2020-03-17 20:37:46 412
原创 使用Postman访问接口中的数据
1.以查询为例@RequestMapping("/list") @RequiresPermissions("platform:student:list") public R list(@RequestParam Map<String, Object> params){ Query query = new Query(params); P...
2020-03-17 20:34:50 788
原创 jeefast启动报错class jdk.internal.loader.ClassLoaders$AppClassLoader
1.报错信息:Exception in thread "main" java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders...
2020-03-17 09:13:58 2654 1
原创 idea实现开发热部署(无需重启应用)
1.加入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional></dependen...
2020-03-16 23:04:21 326
原创 jeefast--框架报错:JSON转化Date类型格式
具体报错信息JSON parse error: Can not deserialize value of type java.util.Date from String "2019-01-01":解决方案:在实体中加入JSON转化注释@JsonFormat( pattern="yyyy-MM-dd") private Date sbirthday;...
2020-03-16 22:57:38 158
原创 jeefast框架--报错Required request body is missing:pfStudent
具体报错信息:Required request body is missing: public cn.jeefast.common.utils.R cn.jeefast.modules.platform.controller.PfStudentController.save(cn.jeefast.modules.platform.entity.PfStudent)解决方案:ajax中的...
2020-03-16 22:55:22 215
原创 springboot+vue报错:Uncaught DOMException: Failed to execute 'setAttribute' on 'Element': ',' is not a
1.打开页面直接报错:解决方法:发现:
2020-01-08 15:07:29 3937
原创 Springboot+vue中报错Zero date value prohibited
1.报异常:Zero date value prohibited在配置文件中url加入:&zeroDateTimeBehavior=convertToNull2.查询选项时,想要显示其他表的字段,要使用map
2020-01-08 09:26:13 238
原创 springboot+vue实现移动分类功能
1.需要到表连接html移动到: <select name="movetid" style="padding:5px 15px; border:1px solid #ddd;" v-on:change="move()" v-model="nt_line"> <option ...
2019-11-18 20:32:54 351
原创 springboot映射图片到html
1.controller @RequestMapping("/toindex") public String getEdit(Model model){ List<banner> bannerData = bannerService.findAll(); model.addAttribute("bannerData",bannerData);...
2019-11-18 10:12:50 239
原创 springboot更换网页轮播图
1.方法使用findall方法 public List<newsType> findAll(){ return newsTypeDao.findAll(); }2.controller @RequestMapping("/tomain") public String getEdit(Model model){ List<ne...
2019-11-14 08:30:45 1751 1
原创 springboot+vue图片上传显示
1.启动类 @Override//图片上传的 public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/imctemp-rainy/**").addResourceLocations("file:D:/JavaProject/SPrin...
2019-11-13 08:18:52 1626
原创 springboot+vue导航栏
1.效果:1.dao层@Query(value = "select * from newstype where nt_fid=0 order by nt_sort asc",nativeQuery = true) List<Map<String,Object>> findMaps(); @Query(value = "select * from n...
2019-11-13 08:14:15 506
原创 springboot+vue的排序
1.实现修改排序那一栏就会位置发生改变2.dao@Query(value = "select * from newsMessage n inner join newstype t on t.nt_id=n.t_id where n_title LIKE CONCAT('%',:n_title,'%') order by n_sort desc",nativeQuery = true) //...
2019-11-05 20:14:48 874
原创 springboot+vue的文件导出功能
1.html<input type="button" v-on:click="downloadfile()" class="button bg-main icon-check-square-o" value="导出">2.vuedownloadfile:function(){ window.location.href="/news/UserExcelDown...
2019-11-04 10:46:04 1872
原创 vue全选删除
1.html<td style="text-align:left; padding-left:20px;"><input type="checkbox" v-model="nids" :value="news.nid"/>{{news.nid}}</td><a class="button border-red icon-trash-o" style="...
2019-11-04 09:22:53 402
原创 vue实现全选反选
<input type="checkbox" v-model="nids" :value="news.nid"/>{{news.nid}}<input type="checkbox" v-on:click="checkAll()"> 全选checkAll:function(){ // alert(3); va...
2019-11-01 15:30:20 447
原创 springboot+vue退出登陆(杀死session)
1.html <a class="button button-little bg-blue" onclick="return confirm('你确定要退出吗')" v-on:click="loginout()"><span class="icon-power-off"></span> 退出登录</a>2.vue方法 met...
2019-10-31 07:57:32 1303
原创 springboot+vue拦截器(不登陆进不去)
1.把文件放到controller包下package com.example.demo.controller;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.http.HttpSession;import or...
2019-10-30 19:33:00 86221
原创 springboot+vue简单验证码
1.通过controller映射到html中验证码元素 @RequestMapping("/login") public String tologin(Model model,HttpServletRequest request){ Random r = new Random(); String str = ""; for(int i = ...
2019-10-30 19:30:58 708
原创 springboot+vue登陆验证
1.跳转html就不写了,下面是html代码<input type="text" class="input input-big" name="nu_name" placeholder="登录账号" data-validate="required:请填写账号" v-model="nu_name" /><input type="password" class="input inp...
2019-10-30 19:25:37 1174
原创 springboot添加修改的新方法
1.vue代码:点击提交之后save:function() { // alert(vm.stu.scid); // alert(JSON.stringify(this.stu)); this.stu.hobbey = this.hobbey.join(",");//此处添加为添加之后爱好为true ...
2019-10-24 09:30:12 452
原创 Springboot+vue的模糊查询方法
1.html代码<td colspan="3" align="center"><input type="text" v-model="name"> <input type="button" value="查询" v-on:click="dataListFn(1)"></td>2.vue代码(再data中添加元素 name:"",从查查询方法...
2019-10-22 14:13:07 1971
原创 springboot在添加时判断用户名唯一
1.添加页面<script> $(function () { $("#name").blur(function () { var name = $("#name").val();//获取id为name的值 $.post("/stu/findByTel_num", {tel_num: name}, function...
2019-10-21 15:20:12 5950 1
原创 springboot中的省市级三级联动的例子
html页面演示<div class="row"><div class="col-md-2"><input type="text" id="txt_city" class="form-control" name="address"/></div></div>vue代码<script> $(functi...
2019-10-21 15:08:15 1599
原创 springboot的全选多选反选删除操作
1.在html页面id一栏中,要加入checkbox,并且命名好id<tr v-for="(v,key) in stu"> <td align="center"><input type="checkbox" name="id" id="id"></td> <td align="center"&...
2019-10-21 15:04:03 1628
原创 java+springboot+vue中的分页操作
vue代码<script> var vm = new Vue({ el:'#app', data:{ all: 10, //总页数 cur: 1,//当前页码 totalPage: 0,//当前条数 }, ...
2019-10-21 15:00:16 390
原创 springboot+vue增删改查
SpringBoot+Vue的增删改查首先:创建好springboot项目之后1.显示html页面<tr> <td align="center">编号</td> <td align="center">姓名</td> <td align="center"&...
2019-10-21 14:55:00 1374
空空如也
javaweb练习:在jsp页面使用import和jsp:useBean出现问题
2020-04-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人