10 2022 档案

摘要:Element按钮组件: <el-row> <el-button>默认按钮</el-button> <el-button type="primary">主要按钮</el-button> <el-button type="success">成功按钮</el-button> <el-button typ 阅读全文
posted @ 2022-10-31 22:53 しゅおく 阅读(151) 评论(0) 推荐(0) 编辑
摘要:在使用vue脚手架创建的项目中,项目中每个文件的第一行都会有红色波浪线。 解决方法:在项目文件中找到package.json文件,在parserOptions里添加"requireConfigFile": false,就可以解决红色波浪线问题。 通过以上操作,问题就可以解决啦! 阅读全文
posted @ 2022-10-31 22:48 しゅおく 阅读(481) 评论(0) 推荐(1) 编辑
摘要:npm 安装 推荐使用 npm 的方式安装,它能更好地和 webpack 打包工具配合使用。 npm i element-ui -S 引入 Element 你可以引入整个 Element,或是根据需要仅引入部分组件。我们先介绍如何引入完整的 Element。 完整引入 在 main.js 中写入以下 阅读全文
posted @ 2022-10-31 22:41 しゅおく 阅读(137) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="nav"> <label for="">新部门</label><input v-model="location" type="text" /> <label for="">旧部门</label><input v-model="OldLocation" t 阅读全文
posted @ 2022-10-31 21:38 しゅおく 阅读(59) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="nav"> <input v-model="location" type="text" /> <input @click="Deletes()" value="删除" type="button" /> <h4 v-if="font 4">成功</h4> 阅读全文
posted @ 2022-10-31 20:41 しゅおく 阅读(56) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="Insert"> <label for="name">名称:</label><input v-model="name" type="text" /> <label for="location">部门:</label><input v-model="loc 阅读全文
posted @ 2022-10-31 14:25 しゅおく 阅读(30) 评论(0) 推荐(0) 编辑
摘要:报错原因: 出现这种错误,说明sql语句执行成功,只是返回类型出了问题。 解决方法: insert、delete、update操作默认返回一个int类型的整数,将增删改的接口改成int或者void即可。 select操作返回的类型可以是自定义的Map或者是List(目前遇到的),这里等我总结了res 阅读全文
posted @ 2022-10-31 13:02 しゅおく 阅读(1400) 评论(0) 推荐(0) 编辑
摘要:说到事务,那什么是事务呢? 事务(Transaction),一般是指要做的或所做的事情。 原子性(Atomicity):事务作为一个整体被执行,包含在其中的对数据库的操作要么全部被执行,要么都不执行。 一致性(Consistency):事务应确保数据库的状态从一个一致状态转变为另一个一致状态。一致状 阅读全文
posted @ 2022-10-31 12:33 しゅおく 阅读(2099) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="nav"> <input v-model="name" type="text" /> <button @click="Delete()">查询</button> </div> </template> <script> import axios from 阅读全文
posted @ 2022-10-30 22:23 しゅおく 阅读(79) 评论(0) 推荐(0) 编辑
摘要:{ 注意驼峰命名法,不然会报错 } 1.在Views文件夹下创建Vue路由文件,例如: <template> </template> <script> </script> template:表示html结构区域,script表示交互区域,style:表示装饰区域 2.完成以后,要把vue文件命名导出 阅读全文
posted @ 2022-10-30 01:58 しゅおく 阅读(127) 评论(0) 推荐(0) 编辑
摘要:原因: ​​eslint​​代码检查到你注册了组件但没有使用,然后就报错了。比如代码: 比如​​Vue​​​中注册了​​File​​组件,而实际上却没有使用到(直接取消注册为好): ... import File from "../../components/file"; export defaul 阅读全文
posted @ 2022-10-30 01:39 しゅおく 阅读(1213) 评论(0) 推荐(0) 编辑
摘要:Vue: v-bind 绑定事件; el:是挂起的含义,“”里填类名; <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE 阅读全文
posted @ 2022-10-29 20:34 しゅおく 阅读(16) 评论(0) 推荐(0) 编辑
摘要:package com.example.demo.gs; import org.springframework.context.annotation.Configuration; import javax.servlet.*; import javax.servlet.annotation.WebF 阅读全文
posted @ 2022-10-29 12:58 しゅおく 阅读(20) 评论(0) 推荐(0) 编辑
摘要:项目类分为: dao层 server层 controller层 Mapper → Server→ controller mapper层(必须要用interface创建) 创建后,首先要在方法前加@Mapper 标明为Mapper类 告知Springboot,之后Springboot就能识别此类; 其 阅读全文
posted @ 2022-10-28 17:06 しゅおく 阅读(106) 评论(0) 推荐(0) 编辑
摘要:箭头函数的形式: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport 阅读全文
posted @ 2022-10-28 13:10 しゅおく 阅读(19) 评论(0) 推荐(0) 编辑
摘要:默认参数: <script> function selet(num, max) { console.log(num + max); } selet(1, 5); </script> 动态参数: <script> function active() { for (let i = 0; i < argu 阅读全文
posted @ 2022-10-28 12:46 しゅおく 阅读(31) 评论(0) 推荐(0) 编辑
摘要:Vue import axios from "axios"; Axios 发送GET请求 axios({ // 请求方式 method: "GET", // 请求地址 url: "http://www.liulongbin.top:3006/api/getbooks", // URL中的查询参数 p 阅读全文
posted @ 2022-10-27 23:32 しゅおく 阅读(27) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-10-27 18:03 しゅおく 阅读(9) 评论(0) 推荐(0) 编辑
摘要:1.jQuery框架的ajax的简介 jquery是一个优秀的js框架,对js原生的ajax进行了封装。 与ajax操作相关的jquery方法有如下几种,但开发中经常使用的有三种:POST、GET、AJAX 2.GET请求方式 通过远程HTTP GET请求载入信息。Get请求方式语法$.get(ur 阅读全文
posted @ 2022-10-27 17:47 しゅおく 阅读(100) 评论(0) 推荐(0) 编辑
摘要:Mybatis 环境 JDBC java基础 JDK 1.8 Mysql5.7 maven 3.6.1 开发工具 idea Junit SSM框架:配置文件的最好方式:看官网文档 1 简介 1.1 什么是Mybatis? MyBatis是一款优秀的持久层框架 支持定制SQL、存储过程以及高级映射 M 阅读全文
posted @ 2022-10-27 16:24 しゅおく 阅读(21) 评论(0) 推荐(0) 编辑
摘要:< 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/ 阅读全文
posted @ 2022-10-17 14:37 しゅおく 阅读(36) 评论(0) 推荐(0) 编辑
摘要:一、概述在本文中,我们将研究如何禁用和自定义 Spring Boot 应用程序的默认错误页面,因为正确的错误处理描述了专业性和质量工作。 2.禁用白标错误页面 首先,让我们看看如何通过将server.error.whitelabel.enabled属性设置为false 来完全禁用白标错误页面: se 阅读全文
posted @ 2022-10-16 17:28 しゅおく 阅读(767) 评论(0) 推荐(0) 编辑
摘要:一、什么是计算机网络 计算机网络(英语:computer network),通常也简称网络,是指容许节点分享资源的数字电信网络[1]:1-3。在电脑网络,电脑设备会透过节点之间的连接(数据链路)互相交换数据。传输介质可分为有线及无线两类——有线的可用到双绞线、光纤电缆等介质[1]:1-4;无线则可用 阅读全文
posted @ 2022-10-06 14:42 しゅおく 阅读(1155) 评论(0) 推荐(0) 编辑