上一页 1 2 3 4 5 6 7 ··· 23 下一页

2017年3月12日

摘要: 1.pl/sql块的结构 declare --声明的变量、类型、游标 begin --程序的执行部分(类似于java的main()方法) exception --针对begin块中出现的异常 when ... then .... end ; 2.打印输出 hello world declare -- 阅读全文
posted @ 2017-03-12 21:43 watchfree 阅读(194) 评论(0) 推荐(0) 编辑
 
摘要: 使用JPA中@Query 注解实现update 操作,代码如下: @Transactional@Modifying(clearAutomatically = true)@Query(value = "update info p set p.status =?1 where p.id = ?2",na 阅读全文
posted @ 2017-03-12 00:59 watchfree 阅读(25128) 评论(0) 推荐(2) 编辑
 
摘要: 将二进制数据转换成Base64字符串: String base64String = new String(byteArray).replaceAll("\n",""); 自己在实际工作中的应用: 将图片以二进制编码的形式存入到数据库中; 在需要将图片展示在前台页面中时,需要将图片二进制编码成base 阅读全文
posted @ 2017-03-12 00:54 watchfree 阅读(8895) 评论(8) 推荐(1) 编辑

2016年12月6日

摘要: 1.新建Jpa项目 2.引入所需的jar 包 3.创建实体类 4.配置JPA Content 下的 persistence.xml 文件 5.创建操作Employee实体的服务类 /** * 查詢所有 * @return */ public List<Employee> findAllEmploye 阅读全文
posted @ 2016-12-06 19:49 watchfree 阅读(1218) 评论(0) 推荐(0) 编辑

2016年12月3日

摘要: 在 Rose 没有 Data modeler 选项的原因是没有将 Data modeler 这块功能勾选上。 解决方案: 菜单栏--Add-Ins--Add-Ins Manager-->找到Data Modeler 勾上 Apply 如下图: Apply后,就能找到Data modeler 了 Ap 阅读全文
posted @ 2016-12-03 23:36 watchfree 阅读(2096) 评论(0) 推荐(0) 编辑

2016年9月20日

摘要: 前缀 'aop' 未绑定: 解决方案 <beansxmlns:aop="http://www.springframework.org/schema/aop" >通配符的匹配很全面, 但无法找到元素 'aop:config' 的声明xsi中追加: xsi:http://www.springframew 阅读全文
posted @ 2016-09-20 10:00 watchfree 阅读(170) 评论(0) 推荐(0) 编辑

2016年9月19日

摘要: 参考配置, 链接mysql 数据库 <!-- 1.配置数据源 --><bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"><!-- 数据库驱动 --><property na 阅读全文
posted @ 2016-09-19 11:15 watchfree 阅读(770) 评论(0) 推荐(0) 编辑

2016年9月18日

摘要: nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/TargetSource 缺少jar包,(spring-aop-4.1.9.RELEASE.jar) 将此包引入即可。 阅读全文
posted @ 2016-09-18 12:08 watchfree 阅读(164) 评论(0) 推荐(0) 编辑

2016年8月20日

摘要: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083 执行命令jps root@hadoopm:/usr# jps1763 ResourceManager1875 NodeManager4854 Jps1400 DataNode1 阅读全文
posted @ 2016-08-20 13:37 watchfree 阅读(4170) 评论(1) 推荐(1) 编辑

2016年8月18日

摘要: Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.Sess 阅读全文
posted @ 2016-08-18 23:00 watchfree 阅读(2645) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 ··· 23 下一页