`
terry0501
  • 浏览: 306041 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
insert into TBL_SMCS_WITHHOLD_RECORD   SELECT t1.AD_APPL_NO AS acct_id --贷款编号          ,          to_date(trim(t2.tl_create_date), 'yyyy-mm-dd hh24:mi:ss') AS start_withhold_date --发起代扣时间          ,          t2.tl_amt AS start_withhold_amt --发起代扣金额          ,          to_date(trim(t2.tl_update_date), ...

发邮件实现

发邮件功能   1.引入jar <dependency>             <groupId>org.apache.commons</groupId>             <artifactId>commons-email</artifactId>             <version>${commons-email.version}</version> </dependency> 2.实现代码 private boolean sendMail(String subject, ...
1.消息读取 进入bin目录   ./kafka-console-consumer.sh --bootstrap-server 172.16.10.44:9092 --from-beginning --topic acct-uni-change-topic

spring跨域设置

import org.springframework.stereotype.Component; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; /** * @author gaohailiang * @date created on 2018/6/7 */ @Component public class CorsConfigurer ...
今天研究了一下scope的作用域。默认是单例模式,即scope="singleton"。另外scope还有prototype、request、session、global session作用域。scope="prototype"多例。再配置bean的作用域时,它的头文件形式如下: 如何使用spring的作用域: <bean id="role" class="spring.chapter2.maryGame.Role" scope="singleton"/> 这里的 scope 就是用 ...
1.引用POM: <dependency> <groupId>org.springframework.kafka</groupId> <artifactId>spring-kafka</artifactId> <version>1.1.3.RELEASE</version> </dependency> 2,消费者配置-spring-kafka-consumer.xml <?xml version="1.0" encoding="UTF-8"?> & ...
(1)使用es client代码库 <elasticsearch.version>2.3.3</elasticsearch.version> <dependency>     <groupId>org.springframework.boot</groupId>     <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> <dependency>     <groupId> ...

dubbo 教程

1.添加依赖jar <dependency> <groupId>com.alibaba</groupId> <artifactId>dubbo</artifactId> <version>2.8.4</version> </dependency> 2.使用xml进行dubbo provider <?xml version="1.0" encoding="UTF-8" ?> <beans xmlns="http:/ ...

Spring IOC好处

IOC:控制反转,它是不是什么技术,它是一种设计模式。所谓控制反转就是由容器控制程序间的关系,而不是传统实现中,由编程代码直接操控。说白了就是由容器控制对象间的依靠关系。 DI:Dependency Injection 依靠注入 ,即组件 ...
一、Redis介绍 什么是Redis? redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、 list(链表)、set(集合)、zset(sorted set –有序集合)和hash(哈希类型)。这些数据类型都支持push/pop、add/remove及取交集并集和差集及更丰富的操作,而且这些操作都是原 子性的。在此基础上,redis支持各种不同方式的排序。与memcached一样,为了保证效率,数据都是缓存在内存中。区别的是redis会周期性的 把更新的数据写入磁盘或者把修改操作写入追加的记录文件,并且在此基础上 ...

oracle to_date 查询

 
select to_date('2005-01-01 13:14:20','yyyy-MM-dd HH24:mi:ss') from dual;
/** * =============================================================================== * The Shenma Internet Financial Information Software License * * Copyright (c) 2017 Shenma Internet Financial Information Service Co., Ltd. * * @Company:  xushenjk www.xushen.com * * @Project: shenma-samp-s ...
一、库表规范 1.  所有库、表、字段一律采用小写字母加下划线的命名方式,禁止大写字母和汉语拼音等其他命名,命名 简洁明了,见名知义,长度控制在32字符以内;         正例:db_fund,tbl_order_detail,user_id         反例:TBL_ORDER,yonghuming,field1,user_Name 2.  所有表均采用innodb存储引擎;       mysql特点支持众多的存储引擎,如myisam,innodb,tokudb       innodb 支持事物,健壮,5.5之后mysql默认使用的存储引擎 3. 所有表的字符集使用utf8,如需要 ...
作者:Oscarwin 链接:https://www.zhihu.com/question/20596402/answer/211492971 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 1. InnoDB支持事务,MyISAM不支持,对于InnoDB每一条SQL语言都默认封装成事务,自动提交,这样会影响速度,所以最好把多条SQL语言放在begin和commit之间,组成一个事务;  2. InnoDB支持外键,而MyISAM不支持。对一个包含外键的InnoDB表转为MYISAM会失败;  3. InnoDB是聚集索引,数据文件是和索引绑在一起的,必须要有 ...
idea 认证地址http://idea.iteblog.com/key.php
Global site tag (gtag.js) - Google Analytics