ITeye博客

happyqing的博客

happyqing · 共 706 篇文章

[置顶] oracle启动和停止

查看Oracle状态: ps -ef|grep ora 或 使用sqlplus登录到sysdba,可以用数据字典查询数据库状态。正常开启的话状态应该是 OPEN select status from v$instance; 要启动或者停止服务,必须拥有sysdba的权限。可以使用两中方式连接: 第一种,以sys用户连接 [oracle@db ~]$ sqlplus / as sysdba [oracle@db ~]$sqlplus sys/change_on_install as sysdba; 第二种: [oracle@db ~]$ sqlplus /nolog SQL> connect …

2013-02-16T14:22:03Z · 数据库 · 评论(0)

[置顶] linux常用查看命令

查看系统 [oracle@dev ~]$ uname Linux [oracle@dev ~]$ uname -i x86_64 查看机器名 及对应IP [oracle@dev ~]$ hostname dev [oracle@dev ~]$ hostname -i 127.0.0.1 查看语言 [oracle@dev ~]$ echo $LANG zh_CN.UTF-8 查看环境变量 [oracle@dev ~]$ env 查看内存 [oracle@dev ~]$ free total used free shared buffers cached Mem: 2234368 2214316…

2013-02-14T00:09:18Z · 操作系统 · 评论(0)

tomcat设置允许软链接

tomcat设置允许软链接 tomcat5,6,7 <Context path="" docBase="" allowLinking="true"/> tomcat8 <Context path="" docBase=""> <Resources allowLinking="true"/> </Context>

2019-01-04T16:43:29Z · 编程语言 · 评论(0)

解决办法:java.net.SocketException: Address family not supported by protocol family:

java.net.SocketException: Address family not supported by protocol family: connect at sun.nio.ch.Net.connect(Native Method) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:532) at org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:277) at org.apache.…

2018-07-11T15:51:38Z · 编程语言 · 评论(0)

jsTree API,属性,方法,事件,插件,常用方法

jstree API 属性、方法、事件、插件 https://www.jstree.com/api/ jstree API 事件 https://www.jstree.com/api/#/?q=jstree Event jstree中文github文档 https://blog.csdn.net/qq_24472595/article/details/70053863 jsTree 核心功能(core functionality) API https://www.cnblogs.com/annkiny/p/7825866.html jsTree初始前清空数据 $('#checkMenuTre…

2018-03-28T23:57:16Z · 编程语言 · 评论(0)

jquery ui dialog 销毁删除html元素,清除缓存

$(this).dialog("destroy").empty(); <div id="dlgCheckRole" class="hide"></div> //解决jquery ui dialog 标题为html显示样式问题 $.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, { _title: function(title) { if (!this.options.title ) { title.html("&#160;"); } else { title.html(this.options.title); } } })); …

2018-03-27T12:16:55Z · 编程语言 · 评论(0)

jqGrid 取消选择事件onUnSelectRow ,取消全选事件onUnSelectAll

var rolesIds = new Array(); //选中行/取消选中行时设置数据rolesIds onSelectRow : function(rowid,status){ if(status){ //选中 if(!rolesIds.contains(rowid)){ rolesIds.push(rowid); } } else { //取消选中 rolesIds.remove(rowid); } }, //全选/取消全选时设置数据rolesIds onSelectAll : function(rowids,status){ if(status){ //选中 for(var i=0;…

2018-03-27T12:10:20Z · 编程语言 · 评论(0)

jquery ui dialog 加载单独页面,不使用iframe

使用iframe加载页面, 优点,没有冲突,缺点:需要单独引用css,js 一、使用ifame 方式一: 感觉这个好点,不用总重新创建iframe <div style="display:none;overflow:hidden;padding:3px" id="dialog"><iframe frameborder="no" border="0" marginwidth="0" marginheight="0" id="prodcutDetailSrc" scrolling="no" width="100%" height="100%"></iframe></div> $("#prodcu…

2018-03-27T11:26:47Z · 编程语言 · 评论(0)

解决jquery ui dialog 标题为html显示样式问题

/*窗口标题样式*/ .ui-dialog .ui-dialog-titlebar { padding: 0em 0em; position: relative; } .ui-dialog { overflow: hidden; position: absolute; top: 0; left: 0; padding: 0em; outline: 0; } 有问题的 Using HTML in a Dialog's title in jQuery UI 1.10 $.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, { _titl…

2018-03-27T10:52:12Z · 编程语言 · 评论(0)

eclipse生成boolean类型getter,setter,is开头的问题

private boolean isDel; public boolean isDel() { return isDel; } public void setDel(boolean isDel) { this.isDel = isDel; } 使用引用类型Boolean就好了, private Boolean isDel; public Boolean getIsDel() { return isDel; } public void setIsDel(Boolean isDel) { this.isDel = isDel; } eclipse 配置lombok,注解生成getter,sett…

2018-02-08T15:46:34Z · 编程语言 · 评论(0)

eclipse 配置lombok,注解生成getter,setter,equals,hashCode,toString

lombok 可以再编译过程中生成getter,setter,equals,hashCode,toString,构造函数等方法 简称 lombok简介 https://www.jianshu.com/p/365ea41b3573 主页: https://projectlombok.org/ 下载 https://projectlombok.org/download maven下载 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.20</version…

2018-02-08T15:38:51Z · 编程语言 · 评论(0)

ace admin jqGrid 显示横向滚动条

修改ace-1.4.0\assets\css\ace.css .ui-jqgrid .ui-jqgrid-bdiv { border-top: 1px solid #E1E1E1; overflow-x: hidden; } 为 .ui-jqgrid .ui-jqgrid-bdiv { border-top: 1px solid #E1E1E1; /* overflow-x: hidden; */ } 并可修改, ace-1.4.0\dist\css\ace.css\ace.min.css 用UE打开,用Eclipse打开容易卡死 如果不想改ace admin的样式表, 可以自定义custo…

2018-02-04T20:32:27Z · 编程语言 · 评论(0)

ace admin ajax加载页面,循环加载首页的解决办法

ace admin 1.4 出现循环加载,主要是因为找不到页面, 需要ajax加载的div <div class="page-content-area" data-ajax-content="true"> <!-- ajax content goes here --> </div> 修改ace-1.4.0\assets\js\src\ace.basics.js var demo_ajax_options = { 'close_active': true, close_mobile_menu: '#sidebar', close_dropdowns: true, 'default_url': …

2018-02-04T20:11:14Z · 编程语言 · 评论(0)

ace admin jqGrid 添加记录 编辑记录 少一个可编辑属性

有一个简单的办法,未知副作用 让ID列隐藏并可编辑 {name:'id',index:'id', width:60, hidden:true, editable:true},

2018-02-04T20:07:34Z · 编程语言 · 评论(0)

spring session redis 配置

一、引入依赖 pom.xml <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId> <version>1.7.10.RELEASE</version> </dependency> <dependency> <groupId>org.springframework.session</groupId> <artifactId>spring-session</artifactId> <version>1.3.1.RELEASE</version> </d…

2018-01-17T19:22:03Z · 编程语言 · 评论(1)