关于Hibernate Annotations

  • Post author:
  • Post category:其他

<one-to-one name="customer" class="mypack.Customer" [color=red]property-ref[/color]="homeAddress"/> [color=red]property-ref[/color] 这个属性,同样的功能,在hibernate annotations中是如果配置的 谢谢

继续阅读 关于Hibernate Annotations

ThreadLocal获取用户信息

  • Post author:
  • Post category:其他

系列文章目录 文章目录 系列文章目录 前言 1. ThreadLocal在web项目中的使用姿势 2. 代码实现 2.1 编写ThreadLocal工具类 2.2 编写拦截器 前言 在之前的政企系统中,我们随时都可能需要获取当前操作的用户信息。针对这个需求,我们使用 ThreadLocal 来解决。若使用了SpringSecurity,则SpringSecurity中提供了对应的解决方案(大概也是…

继续阅读 ThreadLocal获取用户信息

android使用Tablayout+viewpager2

  • Post author:
  • Post category:其他

android使用Tablayout+viewpager2 关于 效果(垂直滑动切换) 添加引用与布局文件 修改布局对应的实例代码 关于 公司半新项目开发,最近也在学习kotlin语言,所以项目是java和kotlin混合开发,所以在build文件上使用了 apply plugin: 'kotlin-android-extensions' ( 这个插件类似ButterKnife,但是extensi…

继续阅读 android使用Tablayout+viewpager2

element-ui拖拽表格换行换列

  • Post author:
  • Post category:其他

<template> <div > <el-table :data="tableData" row-key="id"> <el-table-column v-for="(item, index) in col" :key="`col_${index}`" :prop="dropCol[index].prop" :label="item.label">…

继续阅读 element-ui拖拽表格换行换列

OLAP引擎——Kylin介绍

  • Post author:
  • Post category:其他

Kylin是ebay开发的一套OLAP系统,与Mondrian不同的是,它是一个MOLAP系统,主要用于支持大数据生态圈的数据分析业务,它主要是通过预计算的方式将用户设定的多维立方体缓存到HBase中(目前还仅支持hbase),这段时间对mondrian和kylin都进行了使用,发现这两个系统是时间和空间的一个权衡吧,mondrian是一个ROLAP系统,所有的查询可以通过实时的数据库查询完成,而…

继续阅读 OLAP引擎——Kylin介绍

选项卡下的swiper滑动和左右箭头失效

  • Post author:
  • Post category:其他

给swiper添加这两句就可以了: observer:true, observeParents:true, 如图? 版权声明:本文为qq_43209114原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.csdn.net/qq_43209114/article/details/115404969

继续阅读 选项卡下的swiper滑动和左右箭头失效

在微信页面中,关闭浏览器

  • Post author:
  • Post category:其他

给浏览器添加历史记录,并监听是否进行回退操作 returnHistory:function returnHistory(){ var state = {  title: "title",  url: "#" }; window.addEventListener("popstate", function(e) { if( window.confirm('你确定要离开网站吗?') ){ WeixinJ…

继续阅读 在微信页面中,关闭浏览器

Pycharm ”Cannot Run Git “等一系列Git问题解决方法

  • Post author:
  • Post category:其他

使用Pycharm时右下角提示错误信息“Cannot Run Git”如下图所示 请检查下面步骤: 下载 Github For Windows 客户端并安装。 成功安装之后,连接你的账户。 然后设置你的环境变量,参考path比如:D:\Git\bin 不设置Git环境变量也可以,下面是Pycharm手动设置Git路径详细图解。 实验环境: Windows10 Pycharm2018.2 Git-2…

继续阅读 Pycharm ”Cannot Run Git “等一系列Git问题解决方法

java struct2拦截器_struts2拦截器配置详解

  • Post author:
  • Post category:java

Struts2拦截器详细配置过程 1:所有拦截器的超级接口Interceptor ,Action去实现这个接口; Interceptor它其中有三个方法(init(),destroy() ,interceptor()): Init()方法:在服务器起动的时候加载一次,并且只加载一次; Destroy()方法:当拦截器销毁时执行的方法; Interceptor()方法:其中里边有一个参数invoca…

继续阅读 java struct2拦截器_struts2拦截器配置详解

java计算月份所在的季度

  • Post author:
  • Post category:java

java计算月份所在的季度:(月份+2)/ 3 下班的时候无意中看到同事写的根据月份计算季度的代码: /** * 获取两个时间内的季度集合 * 返回结果说明 quarterList1["2019-1"] quarterList2["2019年1季度"] * * @param startDate * @param endDate * @return * @throws Exception */ pu…

继续阅读 java计算月份所在的季度