Easter79 Easter79
4年前
spring和JPA
Entity使用@Entity注解使javabean类成为实体类。一般使用@Id注解在成员变量或者其对应的get方法设置实体类的主键。例子:packagecom.hgf.jpa.domain;importjavax.persistence.Entity;importjavax
Jacquelyn38 Jacquelyn38
4年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
Wesley13 Wesley13
4年前
SHELL脚本
脚本中需要用sqlplus获取数据库的一行数据,语句很简单,不想传递sql文件,可以使用HereDocument重定向查询语句:sqlpluss$user/$token@$sid<<EOFselectlocaltimestampfromdual;exit;EOF但是使用了HereDocument
Stella981 Stella981
4年前
Kubernetes中用Helm安装Ceph存储服务
Kubernetes中用Helm安装Ceph存储服务注意:本文仅供参考。在Kubernetes中建议使用Rook项目,更为方便、兼容性更好。在Kubernetes中使用Ceph已经有专门的项目rook(https://rook.io(https://
Stella981 Stella981
4年前
MongoDB在spring中xml传统配置
背景旧项目中依然在使用springmvc的xml传统配置,最近需要使用MongoDB,需要在spring引入MongoDB的连接配置。解决配置mongodb数据库<?xmlversion"1.0"encoding"UTF8"?<beansxmlns"http://www.
Stella981 Stella981
4年前
SpringBoot 2.0 系列003
SpringBoot2.0系列003自定义Parent默认我们使用SpringBoot的方式是通过SB的parent项目的方式,此种之前的教程中我们已经演示过了,这里不做赘述。使用自定义parent管理SpringBoot项目
Stella981 Stella981
4年前
Linux设置以root用户开机自动登录桌面
目录Ubuntu18.04系统下设置Redhat7.6系统下设置Ubuntu18.04系统下设置1、允许使用root用户登录桌面  Ubuntu默认不允许使用root用户登录桌面的,首先需要进行如下配置  编辑/
Stella981 Stella981
4年前
Mongodb安装与基础配置(centos7)
说明本教程使用软件,使用默认端口,(需要开启27017端口)mongodblinuxx86\_64rhel703.4.4.tgzMongodb官网:https://www.mongodb.com/(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Flin
可莉 可莉
4年前
10.11 Linux网络相关 10.12 firewalld和netfilter 10.13 netfilter5表5链介绍 10.14 iptables语法
10.11Linux网络相关ifconfig命令查看网卡IP如果系统没有该命令可以使用yum安装:root@cham2~yuminstallynettools查看网卡IP还可以使用命令:ipaddr,这个显示有点乱!ifconfiga显示所有
Wesley13 Wesley13
4年前
MySQL学习笔记20
二十、使用视图1、视图视图是虚拟的表。与包含数据的表不一样,视图只包含使用时动态检索数据的查询。例如:SELECTcust\_name,cust\_contact     FROMcustomers,orders,orderitems     WHEREcustomers.cust\_idorder