草蛋的小青年

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

摘要: 1. substr(字符串,截取开始位置,截取长度) //返回截取的字 eg:select substr('Hello World',-3,3) from dual; >rld 2.to_date(date,'格式'); //返回日期类型 eg: select to_date('2005-01-01 阅读全文
posted @ 2017-10-26 11:54 草蛋的小青年 阅读(254) 评论(0) 推荐(0) 编辑

2018年1月4日

摘要: // Object 是所有对象的父类 引用:https://www.cnblogs.com/lwbqqyumidi/p/3693015.html public class Object { //虽然用private修饰 但是下面的静态方法先执行 private static native void registerNatives(); static { r... 阅读全文
posted @ 2018-01-04 17:27 草蛋的小青年 阅读(124) 评论(0) 推荐(0) 编辑

2018年1月3日

摘要: // 去掉前后空格 public String trim() { int len = value.length; int st = 0; char[] val = value; /* avoid getfield opcode */ while ((st < len) && (val[st] <= 阅读全文
posted @ 2018-01-03 19:32 草蛋的小青年 阅读(238) 评论(0) 推荐(0) 编辑

2018年1月2日

摘要: 先安装python环境 在path变量中配置python的环境 输入python就是能返回版本信息了 安转requests库 通过pip来安装 安装完成后 使用 : 安装,但是会报错 需要在安装setupTools 解压后在setupTools解压的文件夹下一cmd命令 就安装setupTools 阅读全文
posted @ 2018-01-02 17:10 草蛋的小青年 阅读(168) 评论(0) 推荐(0) 编辑

2017年12月27日

摘要: 1.部分字符串的处理: ''或"" 都表示字符串 其中打印多个字符串用 ',' 分割,编译器会将其转化成" " 转义字符:'\' 当字符串内,既有' 也有" 时 可以用 \ 来进行转义 '\t' 表示制表符 8个空格 ;'\n' 表示换行 多行内容时 '''........''' 可以按照原样式打印 阅读全文
posted @ 2017-12-27 14:18 草蛋的小青年 阅读(158) 评论(0) 推荐(0) 编辑

2017年12月15日

摘要: 问题发生: 通过@Responsebody返回 结果: 解决办法: 在spring-mvc.xml中配置 但是配置完后又有了新的问题 后来知道是 springMVC的XSD文件版本不对,换成springMVC 4.0的 XSD就可以了 然后就ok了 阅读全文
posted @ 2017-12-15 13:59 草蛋的小青年 阅读(656) 评论(0) 推荐(0) 编辑

2017年12月11日

摘要: 1,通过继承 spring 自带的 AbstractRoutingDataSource 方法 来 进行 数据源切换 DbContextHolder 实现类 在 spring+ Mybatis 的数据源配置文件 中添加 dynamicDataSource 的切换方法 这里通过JNDI 方式 获取数据源 阅读全文
posted @ 2017-12-11 15:32 草蛋的小青年 阅读(382) 评论(0) 推荐(0) 编辑

2017年11月15日

摘要: <properties> <spring.version>4.0.5.RELEASE</spring.version> <jackson.version>1.9.13</jackson.version> </properties> <dependencies> <!-- junit4 --> <de 阅读全文
posted @ 2017-11-15 09:10 草蛋的小青年 阅读(202) 评论(0) 推荐(0) 编辑