Spring配置 设置别名 //在配置文件中设置别名 <alias> <alias name="user" alias="myUser"/> //在测试类中使用设置的别名 User user= (User) applicationContext.getBean("myUser"); 标签配置 id ...
分类:
编程语言 时间:
2021-05-24 03:12:20
阅读次数:
0
XML配置 * beans.xml 配置class <!-- 使用Spring来创建对象,在Spring中这些都称为Bean Bean=对象 Hello hello = new Hello(); id=变量名 class=new的对象 property相当于对象的属性,给属性设置值 --> <bea ...
分类:
编程语言 时间:
2021-05-24 03:07:02
阅读次数:
0
覆盖索引 需要查询的值已经在索引里面包含了,就不需要查询数据行了。 mysql> explain select * from person1 where a like '%12%'; + + + + + + + + + + + + + | id | select_type | table | par ...
分类:
数据库 时间:
2021-05-24 03:06:44
阅读次数:
0
一、介绍 如果数据都在容器中,容器已删除,数据都会丢失。容器之间可以有一个共享的技术。docker容器产生的数据,可以同步到本地。将容器内的目录,挂载到linux上面。 二、制作镜像 docker commit -m="提交信息" -a="作者" 容器id 目标镜像名:tag #制作镜像文件,tag ...
分类:
其他好文 时间:
2021-05-24 02:52:46
阅读次数:
0
官网下载 uditor jsp版本插件 在html页面中引入 ueditor.config.js ueditor.all.min.js 展示: <div id="editor" style="height:360px"> </div> 需要加载编辑器 var ue = UE.getEditor('e ...
分类:
其他好文 时间:
2021-05-24 02:28:17
阅读次数:
0
使用canvas rotate实现一个旋转的矩形,并且以矩形的中心为原点,围绕原点旋转: <canvas id="canvas" width="800" height="400"></canvas> <script type="text/javascript"> var canvas = docum ...
分类:
其他好文 时间:
2021-05-24 02:25:51
阅读次数:
0
Dapper的多表查询实现打开链接 using (var conn = new SqlConnection(myConnectionString)) { conn.Open(); .... } 单表查询 public class Account { public int? Id {get;set;} ...
分类:
移动开发 时间:
2021-05-24 02:03:08
阅读次数:
0
<template> <div> <video id="my-video" class="video-js vjs-default-skin vjs-big-play-centered box" controls preload="none" > <source src="" type="appli ...
分类:
其他好文 时间:
2021-05-24 01:58:51
阅读次数:
0
方法一 select t1.* from stadium t1, stadium t2, stadium t3 where t1.people >= 100 and t2.people >= 100 and t3.people >= 100 and ( (t1.id - t2.id = 1 and ...
分类:
其他好文 时间:
2021-05-24 01:17:27
阅读次数:
0
今天给大家介绍一种无限重置30天试用期的方式持续使用 IDEA,暴力无解,简单又稳定,再也不用担心经常失效的问题了,具体步骤跟着下文步骤一步一步来就行。 注意:如果之前有安装过 Betterintellij 补丁,该补丁爆出被黑客篡改过,有严重的安全风险,一定要卸载掉,以免造成损失,请使用本文 ID ...
分类:
其他好文 时间:
2021-05-24 00:59:53
阅读次数:
0