- vim十字显示的设置
落雨无风
vimlinux
vim设置分享一下自己的在linux下的vim的设置文件.vimrc其中最想分享的是vim十字显示的方式如图magic自己没有试出来什么效果十字显示是line12~15都需要的。如果只有12,13,设置出来的效果就是下划线的样子。239是0到255配色的中间值。个人比较喜欢239,个人爱好,随便设置自己喜欢的颜色。
- 一文理解 Python 中的环境变量
简讯Alfred
和我一起零基础学Python简明python教程零基础学pythonpython环境变量
你好,我是简讯!一枚野生程序员。热爱编程,但目前的工作与编程毫无关系。正在尝试各种副业,目前有做:红包封面商城:如何利用红包封面打造副业购物平台赚取佣金:利用淘宝京东等平台优惠券赚取佣金编辑器使用Neovim多一点,如果你也喜欢使用Nvim,我们可以一起交流。我的Nvim配置:https://github.com/alpha87/nvim。个人公众号经常会分享一些编程相关的文章,还有一些我已经操作
- linux编辑器——vim使用方法
孤サ月
linux编辑器vimlinux
文章目录linux编辑器——vim使用方法1.vim的基本概念2.vim的基本操作3.vim正常模式命令集4.vim末行模式命令集5.vim操作总结6.简单vim配置7.参考资料linux编辑器——vim使用方法vi/vim的区别简单点来说,它们都是多模式编辑器,不同的是vim是vi的升级版本,它不仅兼容vi的所有指令,而且还有一些新的特性在里面。例如语法加亮,可视化操作不仅可以在终端运行,也可以
- Linux中设置tomcat开机自动启动
qian777duoduo
tomcatlinux服务器
第一步将tomcat的启动文件配置在linux开机启动文件中路径cd/etc/rc.d/第二步vimrc.local第13行是我的jdk路径(更换为你的jdk路径)第14号是我的tomcat启动路径(更换为你的tomcat路径)第三步给文件增加权限chmod755rc.local第四步启动服务器验证reboot
- Linux之shell脚本的if分支
小橞
linux运维服务器
if分支介绍shell脚本中的if分支语句,有编程基础的同学会感觉十分简单(其实就是想水一篇,周末一定补一篇高质量的)。if单分支格式if条件;then执行。。fiif双分支格式if条件;then执行。。else。。。。fivim自动缩进配置文件~/.vimrcif多分支if条件测试1;then命令序列1elif条件测试2;then命令序列2else命令序列nfi条件测试可以放命令,只要是可以分对
- [vim] vim多窗口切换
lainegates
vim编辑器linux
需求写代码的过程中,经常需要在不相邻窗口之间跳转。方案使用neovim-window切换。插件管理使用lazy.nvimneovim配置在~/.config/nvim/lua/plugins/下增加文件window-picker.lua,内容为return{{"yorickpeterse/nvim-window",name="neovim-window-picker",event="VeryLaz
- Git版本控制
SwDengpeixun
版本控制git
文章目录概念Git常用命令1.常用全局配置配置用户信息配置别名配置编译器vim配置亮高显示查看所有配置2.下载代码3.分支操作4.修改代码并提交代码修改后,可以通过如下将修改的代码标记为track状态将标记为track状态的文件提交提交代码到远程仓库5.回退代码将代码回退到三天前回退代码到某一天的某个时间点查看某个时间段的日志将服务器代码回退到某个点并提交到某个分支按日期查看log6.合并分支把另
- Linux Vim 进阶教程
原机小子
linuxvimexcel
LinuxVim进阶教程1.简介Vim(ViIMproved)是一款功能强大的文本编辑器,广泛应用于Linux和Unix系统中。本教程将深入探讨Vim的高级功能和技巧,帮助您提升编辑效率和使用体验。2.Vim配置和插件管理2.1配置文件.vimrcVim的配置文件位于用户目录下的.vimrc文件中,用于定制编辑器的行为和外观。以下是一些常见配置项:"设置行号setnumber"设置自动缩进seta
- .vimrc
onbug
settabstop=4setsofttabstop=4setshiftwidth=4setautoindentsetcindentsetcinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1ssetexpandtabsetnucolorschemedesertsyntaxon
- 【从Python基础到深度学习】 8. VIM两种状态
风筝超冷
vim编辑器linux
一、安装sudoaptinstallvim二、VIM两种模式-命令状态/编辑状态1.1进入/退出VIM进入VIMvim退出vim:q2.2根目录下添加配置文件window下创建vimrc类型文件内容如下:setnusetcursorlinesethlsearchsettabstop=4使用Winscp将vimrc文件拖入根目录下(Winscp使用见【从Python基础到深度学习】3.Winscp与
- 13-k8s的控制器资源-rc控制器replicationcontrollers
心机の之蛙
k8s系列kubernetes容器云原生
一、rc控制器资源的概述replicationcontrollers控制器资源,简称:rc控制器;简单理解,rc控制器就是控制相同的pod副本数量;使用rc控制器资源创建pod,就可以设定创建pod的数量;二、rc控制器资源管理1,编辑rc资源清单[root@k8s231rc]#vimrc.yamlapiVersion:v1kind:ReplicationControllermetadata:na
- 【Linux】yum软件包管理器
lzb_kkk
Linuxlinux运维服务器
目录Linux软件包管理器yum什么是软件包Linux安装软件查看软件包关于rzszLinux卸载软件查看yum源扩展yum源下载Linux开发工具vim编辑器上述vim三种模式之间的切换总结:命令模式下,一些命令:vim配置Linux软件包管理器yum什么是软件包在Linux下安装软件,一个通常的办法是下载到程序的源代码,并进行编译,得到可执行程序.但是这样太麻烦了,于是有些人把一些常用的软件提
- Linux-Vim的使用,快速入门Vim,Linux入门教程,精讲Linux
梦断南楼
Linux精讲linuxvimexcel
Vim的三种模式输入模式,键入i或a或o都可以进入输入模式。普通模式,打开Vim默认的模式。命令模式,键入:进入命令模式。注意:按下ESC可以从输入模式或命令模式退回到普通模式退出vim,需要在普通模式下切换到命令模式(:)q无修改的情况下,直接退出。q!有修改的情况下,不保存退出。wq有修改的情况下,保存并退出。Vim的配置相关知识点编辑.vimrc文件:vim.vimrc"语法高亮setsyn
- Linux--基础开发工具篇(2)(vim)(配置白名单sudo)
momo小菜pa
Linux学习linux运维服务器
目录前言1.vim1.1vim的基本概念1.2vim的基本操作1.3vim命令模式命令集1.4vim底行命令1.5异常问题1.6批量注释和批量去注释1.7解决普通用户无法sudo的问题1.8简单vim配置前言在前面我们学习了yum,也就是Linux系统的应用商店Linux--基础开发工具篇(1)(yum)-CSDN博客今天我们开始学习Linux的第二个开发工具vim。1.vimvi/vim的区别简
- vim 启用鼠标复制粘贴
bwlab
vim计算机外设编辑器
其实这个是错误的标题,其实是nvim,最近在使用parrot的vim时,发现右键粘贴文本的时候,左下显示--(insert)VISUAL--,并且无法粘贴内容一般网上会教你用setmouse-=a,当然这个没有问题,但是持久化的时候,网上通常是说修改~/.vimrc正常这个没问题,但是我发现修改了不生效,然后vim--version的时候发现┌─[root@parrot]─[~]└──╼#vim-
- idea vim配置
wang812745312
intellij-ideavimexcel
"basemap"source$cnfpath/nvim/cnf/basemap.vim""""""""""""""""""""""自动设置"""""""""""""""""""""""""""""""""""""""""""通用设置""""""""""""""""""""""解决中文输入法"在ibus里面添加代码.config/ibus/rime/build/stroke.schema.yaml
- Linux开发工具及其安装
黑眼圈的小熊猫
linux运维服务器
文章目录Linux软件包管理器yumLinux开发工具Linux编辑器-vim命令模式插入模式末行模式简单的vim配置Linux编译器-gcc/g++Linux调试器-gdbLinux项目自动化构建工具-make/makefileLinux软件包管理器yum在Linux下安装软件,一个常用的办法是先下载程序的源代码,然后编译就可以得到可执行程序。还有一种更为常用的方法就是利用软件包直接安装,软件包
- 从零开始配置 vim(9)——初始配置
一叶障目
虽然本系列文章叫做从0开始配置vim,似乎我们从一开始就要写vimrc配置文件,但是我们并没有这么做。我们先经过几篇文章了解了下面的几个内容如何设置vim属性,从而改变vim的特征配置快捷键,以提高我们的使用效率使用自动命令,以便使用vim来自动化我们的相关操作这些既有vimscript的东西,也有vim自身一些特性的描述。拥有这些基础知识之后,在阅读其他人写的配置或者自己配置将会变得更加容易。当
- 修改Vim编辑器的缩进和显示行数
星筠君辰
编辑器vimlinux
一、Vim编辑器的缩进和显示行数1.指令sudovi/etc/vim/vimrc2.插入内容settabstop=4setshiftwidth=4setnu注意输入的格式,=前后不要留空格tabstop是输入按下tab缩进4个shiftwidth是批量缩进4个nu是显示行数
- 【Linux】yum与vim命令详解
流浪者与猴
Linuxlinuxvim运维
个人主页⭐个人专栏——Linux学习⭐点击关注一起学习C语言目录导读1.yum命令1.1基本使用1.2注意事项1.3lrzsz软件包示例2.vim命令2.1vim的基本概念2.2vim配置2.3vim的基本操作2.3.1命令模式2.3.2底行模式导读我们上次讲了Linux的文件操作,今天就来学习下Linux中的一些开发工具的使用。1.yum命令1.1基本使用yum命令是Linux系统中的一个软件包
- MacBook 终端terminal vim配置
beyond阿亮
macterminalmacbookvim
MacBook终端terminalvim配置#进入目录cd~#复制系统的vim配置文件到用户目录cp-r/usr/share/vim/vimrc~/.vimrc#编辑.vimrc文件配置我们的vim设置,有很多配置,只提供目前自己在用的一个配置vim.vimrc语法高亮syntaxon用浅色高亮当前行autocmdInsertLeave*senoculautocmdInsertEnter*secu
- 解决vim中文乱码
烟雨话浮生
学习报错vim
[root@k8s-master1~]#vim/etc/vimrc添加setfileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936settermencoding=utf-8setencoding=utf-8
- vim删除注释
yvee
vim编辑器linux
删除//注释:%s/\/\/.*$//g删除空行:%g/^\s*$/d删除/**/单行多行:%s,/\*\_.\{-}\*/,,g频率高的话做个快捷键修改.vimrc添加以下map:callUnComment()functionUnComment()execute'%s,/\*\_.\{-}\*/,,g'execute'%s/\/\/.*$//g'execute'%g/^\s*$/d'endfun
- 3 编辑器(Vim)
碰碰狗
计算机教育中缺失的一课编辑器
1.完成vimtutor。备注:它在一个80x24(80列,24行)终端窗口看起来效果最好。2.下载我们提供的vimrc,然后把它保存到~/.vimrc。通读这个注释详细的文件(用Vim!),然后观察Vim在这个新的设置下看起来和使用起来有哪些细微的区别。3.安装和配置一个插件:ctrlp.vim.用mkdir-p~/.vim/pack/vendor/start创建插件文件夹下载这个插件:cd~/
- vi 和 vim
式飞噶罗密欧
随笔vivim
关于cygwin下vi编辑方向键和退格键问题的解决:1.vi~/.virc2.添加以下内容setnocpsetbackspace=start,indent,eol3.保存退出:wq(或者ZZ)如果是vim编辑器,则cp/usr/share/vim/vim__/vimrc_example.vim~/.vimrc就o了。然后就可以愉快地用上方向键和退格键了。摘录一些vi和vim的区别----vim的这
- 【vim 学习系列文章 3.2 -- vim 删除 空格】
CodingCos
#vim学习系列文章vim学习编辑器vim删除行尾空格
文章目录vim删除行尾空格vim删除行尾空格在代码开发的过程中,经常会遇到行尾有空格的现象,如下:我们可以在.vimrc中通过map命令来映射删除行尾空格的快捷键,如下:mapd:%s/\s*$//gd:表示delete;:代码空格键。所以执行d+空格键就可以删除行尾空格。
- Idea vimrc
wang812745312
intellij-ideajavaide
"basemap"source$cnfpath/nvim/cnf/basemap.vim""""""""""""""""""""""自动设置"""""""""""""""""""""""""""""""""""""""""""通用设置""""""""""""""""""""""解决中文输入法"在ibus里面添加代码.config/ibus/rime/build/stroke.schema.yaml
- Linux编辑器之vim的使用
仍在探索未知中
Linuxlinux编辑器vimvi
文章目录一、vim简介二、vim的基本概念三、vim的基本操作四、vim正常模式命令集移动光标删除文字复制替换撤销上一次操作更改跳至指定的行vim末行模式命令集列出行号跳到文件中的某一行查找字符保存文件离开vim五、进阶vim玩法打开文件批量注释代码执行shell命令指定注释窗口命令退出命令六、简单vim配置配置文件的位置常用配置选项,用来测试一、vim简介Vim是一个类似于Vi的高度可定制的文本
- vim代码折叠
夏虫_1c76
vim自带代码折叠功能。且该功能可以支持6中不同的折叠方式。我比较喜欢按照indent(缩进)来折叠,那我就在~/.vimrc文件里面加入如下配置即可:setfoldmethod=indent折叠命令是zc,展开是zo。个人感觉比在IDE里面鼠标去点舒服多了。indent方式只会折叠同一分支下的缩进相同的语句及其子分支。对于其他分支下的相同缩进的语句及其子分支,vim不会进行折叠,例如todo语句
- ubuntu和树莓派下vim插件管理
ketaotech
编程工具vim
目录管理方式选择vim手动方式管理插件延迟加载加载插件帮助文档make管理vim插件1.安装make和git2.获取vim配置仓库3.准备工作4.安装相关软件5.安装并升级vim插件6.安装vim配置相关文件7.vim恢复到初始状态管理方式选择插件管理器vim-plug,Vundle等都依靠github,在国内由于github经常不能clone和push等操作,所以不打算使用vim插件管理器.为了
- html
周华华
html
js
1,数组的排列
var arr=[1,4,234,43,52,];
for(var x=0;x<arr.length;x++){
for(var y=x-1;y<arr.length;y++){
if(arr[x]<arr[y]){
&
- 【Struts2 四】Struts2拦截器
bit1129
struts2拦截器
Struts2框架是基于拦截器实现的,可以对某个Action进行拦截,然后某些逻辑处理,拦截器相当于AOP里面的环绕通知,即在Action方法的执行之前和之后根据需要添加相应的逻辑。事实上,即使struts.xml没有任何关于拦截器的配置,Struts2也会为我们添加一组默认的拦截器,最常见的是,请求参数自动绑定到Action对应的字段上。
Struts2中自定义拦截器的步骤是:
- make:cc 命令未找到解决方法
daizj
linux命令未知make cc
安装rz sz程序时,报下面错误:
[root@slave2 src]# make posix
cc -O -DPOSIX -DMD=2 rz.c -o rz
make: cc:命令未找到
make: *** [posix] 错误 127
系统:centos 6.6
环境:虚拟机
错误原因:系统未安装gcc,这个是由于在安
- Oracle之Job应用
周凡杨
oracle job
最近写服务,服务上线后,需要写一个定时执行的SQL脚本,清理并更新数据库表里的数据,应用到了Oracle 的 Job的相关知识。在此总结一下。
一:查看相关job信息
1、相关视图
dba_jobs
all_jobs
user_jobs
dba_jobs_running 包含正在运行
- 多线程机制
朱辉辉33
多线程
转至http://blog.csdn.net/lj70024/archive/2010/04/06/5455790.aspx
程序、进程和线程:
程序是一段静态的代码,它是应用程序执行的蓝本。进程是程序的一次动态执行过程,它对应了从代码加载、执行至执行完毕的一个完整过程,这个过程也是进程本身从产生、发展至消亡的过程。线程是比进程更小的单位,一个进程执行过程中可以产生多个线程,每个线程有自身的
- web报表工具FineReport使用中遇到的常见报错及解决办法(一)
老A不折腾
web报表finereportjava报表报表工具
FineReport使用中遇到的常见报错及解决办法(一)
这里写点抛砖引玉,希望大家能把自己整理的问题及解决方法晾出来,Mark一下,利人利己。
出现问题先搜一下文档上有没有,再看看度娘有没有,再看看论坛有没有。有报错要看日志。下面简单罗列下常见的问题,大多文档上都有提到的。
1、address pool is full:
含义:地址池满,连接数超过并发数上
- mysql rpm安装后没有my.cnf
林鹤霄
没有my.cnf
Linux下用rpm包安装的MySQL是不会安装/etc/my.cnf文件的,
至于为什么没有这个文件而MySQL却也能正常启动和作用,在这儿有两个说法,
第一种说法,my.cnf只是MySQL启动时的一个参数文件,可以没有它,这时MySQL会用内置的默认参数启动,
第二种说法,MySQL在启动时自动使用/usr/share/mysql目录下的my-medium.cnf文件,这种说法仅限于r
- Kindle Fire HDX root并安装谷歌服务框架之后仍无法登陆谷歌账号的问题
aigo
root
原文:http://kindlefireforkid.com/how-to-setup-a-google-account-on-amazon-fire-tablet/
Step 4: Run ADB command from your PC
On the PC, you need install Amazon Fire ADB driver and instal
- javascript 中var提升的典型实例
alxw4616
JavaScript
// 刚刚在书上看到的一个小问题,很有意思.大家一起思考下吧
myname = 'global';
var fn = function () {
console.log(myname); // undefined
var myname = 'local';
console.log(myname); // local
};
fn()
// 上述代码实际上等同于以下代码
m
- 定时器和获取时间的使用
百合不是茶
时间的转换定时器
定时器:定时创建任务在游戏设计的时候用的比较多
Timer();定时器
TImerTask();Timer的子类 由 Timer 安排为一次执行或重复执行的任务。
定时器类Timer在java.util包中。使用时,先实例化,然后使用实例的schedule(TimerTask task, long delay)方法,设定
- JDK1.5 Queue
bijian1013
javathreadjava多线程Queue
JDK1.5 Queue
LinkedList:
LinkedList不是同步的。如果多个线程同时访问列表,而其中至少一个线程从结构上修改了该列表,则它必须 保持外部同步。(结构修改指添加或删除一个或多个元素的任何操作;仅设置元素的值不是结构修改。)这一般通过对自然封装该列表的对象进行同步操作来完成。如果不存在这样的对象,则应该使用 Collections.synchronizedList 方
- http认证原理和https
bijian1013
httphttps
一.基础介绍
在URL前加https://前缀表明是用SSL加密的。 你的电脑与服务器之间收发的信息传输将更加安全。
Web服务器启用SSL需要获得一个服务器证书并将该证书与要使用SSL的服务器绑定。
http和https使用的是完全不同的连接方式,用的端口也不一样,前者是80,后
- 【Java范型五】范型继承
bit1129
java
定义如下一个抽象的范型类,其中定义了两个范型参数,T1,T2
package com.tom.lang.generics;
public abstract class SuperGenerics<T1, T2> {
private T1 t1;
private T2 t2;
public abstract void doIt(T
- 【Nginx六】nginx.conf常用指令(Directive)
bit1129
Directive
1. worker_processes 8;
表示Nginx将启动8个工作者进程,通过ps -ef|grep nginx,会发现有8个Nginx Worker Process在运行
nobody 53879 118449 0 Apr22 ? 00:26:15 nginx: worker process
- lua 遍历Header头部
ronin47
lua header 遍历
local headers = ngx.req.get_headers()
ngx.say("headers begin", "<br/>")
ngx.say("Host : ", he
- java-32.通过交换a,b中的元素,使[序列a元素的和]与[序列b元素的和]之间的差最小(两数组的差最小)。
bylijinnan
java
import java.util.Arrays;
public class MinSumASumB {
/**
* Q32.有两个序列a,b,大小都为n,序列元素的值任意整数,无序.
*
* 要求:通过交换a,b中的元素,使[序列a元素的和]与[序列b元素的和]之间的差最小。
* 例如:
* int[] a = {100,99,98,1,2,3
- redis
开窍的石头
redis
在redis的redis.conf配置文件中找到# requirepass foobared
把它替换成requirepass 12356789 后边的12356789就是你的密码
打开redis客户端输入config get requirepass
返回
redis 127.0.0.1:6379> config get requirepass
1) "require
- [JAVA图像与图形]现有的GPU架构支持JAVA语言吗?
comsci
java语言
无论是opengl还是cuda,都是建立在C语言体系架构基础上的,在未来,图像图形处理业务快速发展,相关领域市场不断扩大的情况下,我们JAVA语言系统怎么从这么庞大,且还在不断扩大的市场上分到一块蛋糕,是值得每个JAVAER认真思考和行动的事情
- 安装ubuntu14.04登录后花屏了怎么办
cuiyadll
ubuntu
这个情况,一般属于显卡驱动问题。
可以先尝试安装显卡的官方闭源驱动。
按键盘三个键:CTRL + ALT + F1
进入终端,输入用户名和密码登录终端:
安装amd的显卡驱动
sudo
apt-get
install
fglrx
安装nvidia显卡驱动
sudo
ap
- SSL 与 数字证书 的基本概念和工作原理
darrenzhu
加密ssl证书密钥签名
SSL 与 数字证书 的基本概念和工作原理
http://www.linuxde.net/2012/03/8301.html
SSL握手协议的目的是或最终结果是让客户端和服务器拥有一个共同的密钥,握手协议本身是基于非对称加密机制的,之后就使用共同的密钥基于对称加密机制进行信息交换。
http://www.ibm.com/developerworks/cn/webspher
- Ubuntu设置ip的步骤
dcj3sjt126com
ubuntu
在单位的一台机器完全装了Ubuntu Server,但回家只能在XP上VM一个,装的时候网卡是DHCP的,用ifconfig查了一下ip是192.168.92.128,可以ping通。
转载不是错:
Ubuntu命令行修改网络配置方法
/etc/network/interfaces打开后里面可设置DHCP或手动设置静态ip。前面auto eth0,让网卡开机自动挂载.
1. 以D
- php包管理工具推荐
dcj3sjt126com
PHPComposer
http://www.phpcomposer.com/
Composer是 PHP 用来管理依赖(dependency)关系的工具。你可以在自己的项目中声明所依赖的外部工具库(libraries),Composer 会帮你安装这些依赖的库文件。
中文文档
入门指南
下载
安装包列表
Composer 中国镜像
- Gson使用四(TypeAdapter)
eksliang
jsongsonGson自定义转换器gsonTypeAdapter
转载请出自出处:http://eksliang.iteye.com/blog/2175595 一.概述
Gson的TypeAapter可以理解成自定义序列化和返序列化 二、应用场景举例
例如我们通常去注册时(那些外国网站),会让我们输入firstName,lastName,但是转到我们都
- JQM控件之Navbar和Tabs
gundumw100
htmlxmlcss
在JQM中使用导航栏Navbar是简单的。
只需要将data-role="navbar"赋给div即可:
<div data-role="navbar">
<ul>
<li><a href="#" class="ui-btn-active&qu
- 利用归并排序算法对大文件进行排序
iwindyforest
java归并排序大文件分治法Merge sort
归并排序算法介绍,请参照Wikipeida
zh.wikipedia.org/wiki/%E5%BD%92%E5%B9%B6%E6%8E%92%E5%BA%8F
基本思想:
大文件分割成行数相等的两个子文件,递归(归并排序)两个子文件,直到递归到分割成的子文件低于限制行数
低于限制行数的子文件直接排序
两个排序好的子文件归并到父文件
直到最后所有排序好的父文件归并到输入
- iOS UIWebView URL拦截
啸笑天
UIWebView
本文译者:candeladiao,原文:URL filtering for UIWebView on the iPhone说明:译者在做app开发时,因为页面的javascript文件比较大导致加载速度很慢,所以想把javascript文件打包在app里,当UIWebView需要加载该脚本时就从app本地读取,但UIWebView并不支持加载本地资源。最后从下文中找到了解决方法,第一次翻译,难免有
- 索引的碎片整理SQL语句
macroli
sql
SET NOCOUNT ON
DECLARE @tablename VARCHAR (128)
DECLARE @execstr VARCHAR (255)
DECLARE @objectid INT
DECLARE @indexid INT
DECLARE @frag DECIMAL
DECLARE @maxfrag DECIMAL
--设置最大允许的碎片数量,超过则对索引进行碎片
- Angularjs同步操作http请求with $promise
qiaolevip
每天进步一点点学习永无止境AngularJS纵观千象
// Define a factory
app.factory('profilePromise', ['$q', 'AccountService', function($q, AccountService) {
var deferred = $q.defer();
AccountService.getProfile().then(function(res) {
- hibernate联合查询问题
sxj19881213
sqlHibernateHQL联合查询
最近在用hibernate做项目,遇到了联合查询的问题,以及联合查询中的N+1问题。
针对无外键关联的联合查询,我做了HQL和SQL的实验,希望能帮助到大家。(我使用的版本是hibernate3.3.2)
1 几个常识:
(1)hql中的几种join查询,只有在外键关联、并且作了相应配置时才能使用。
(2)hql的默认查询策略,在进行联合查询时,会产
- struts2.xml
wuai
struts
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache