LocalDateTime json格式化
摘要:参考https://www.cnblogs.com/xiaozhang9/p/jackson.html?utm_source=itdadao&utm_medium=referral
阅读全文
格式化java8 LocalDateTime
摘要:DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss", Locale.CHINA).format(time1);
阅读全文
springboot定时任务
摘要:@Configuration @EnableAsync @EnableScheduling public class CronConfig { @Autowired private ApiService apiService; @Scheduled(cron="0/5 * * * * ?") pub
阅读全文
spring JPA分页排序条件查询
摘要:@RequestMapping("/listByPage") public Page<Production> listByPage(int page, int size, String sortStr, boolean sortAscOrDesc, String searchObj) { Speci
阅读全文
页面允许鼠标左键选中文本
摘要:user-select: text; -moz-user-select: text; -webkit-user-select: text; /*webkit浏览器*/ -ms-user-select: text; /*IE10*/ -khtml-user-select: text; /*早期浏览器*
阅读全文
oracle改变表中列的编码
摘要:ALTER TABLE table_name CHANGE `name` `name` VARCHAR(255) CHARACTER SET utf8;
阅读全文
js操作cookie
摘要:function getCookie(c_name) { if (document.cookie.length > 0) { var c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { c_start = c_s
阅读全文
hibernate联合主键
摘要:@Entity @Table(name = "TABLE_NAME") @IdClass(PK.class) public class TableName implements Serializable{ @Id @Column(name="ID1") private String id1; @Id
阅读全文
Hibernate 序列生成主键
摘要:@Entity @Table(name="TABLE_NAME") public class TableName implements Serializable { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="a
阅读全文
oracle创建存储过程
摘要:CREATE OR REPLACE PROCEDURE "PROCUDURE_NAME" (task_id NUMBER, deal_result out NUMBER, result_info out VARCHAR) AS BEGIN update TABLE_NAME set zzz ='z1' where ID = task_id; deal_result := 0; res...
阅读全文
mysql允许某ip访问
摘要:grant all on *.* to databaseName@'ipAddress' identified by 'somePassword'; flush privileges;
阅读全文
ORACLE用户解锁
摘要:alter user wms_user ACCOUNT UNLOCK
阅读全文
oracle查询锁表
摘要:select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time; alter system kill se
阅读全文
oracle杀掉执行的死循环存储过程
摘要:select * from v$db_object_cache where locks > 0 and pins > 0 and type='PROCEDURE'; select b.sid,b.SERIAL#,a.OBJECT, 'alter system kill session ' || ''
阅读全文
oracle以逗号分隔查询结果列表
摘要:select wmsys.wm_concat(id) from table_name where id >= 5000 and id < 6000
阅读全文
查询oracle的session数
摘要:select * from v$resource_limit;
阅读全文
oracle存储过程-获取错误信息
摘要:dbms_output.put_line('code:' || sqlcode); dbms_output.put_line('errm:' || sqlerrm); dbms_output.put_line('lineno:' || dbms_utility.format_error_backtr
阅读全文
IEDA console 中文乱码问题
摘要:VM options -Dfile.encoding=UTF-8
阅读全文
maven向本地库添加jar包
摘要:mvn install:install-file -DgroupId=com.lowagie -DartifactId=itextasian -Dversion=1.0 -Dpackaging=jar -Dfile=iTextAsian.jar
阅读全文
httpclient4例子
摘要:参考:http://hc.apache.org/httpclient-3.x/tutorial.html
阅读全文
java AES 对称加密解密
摘要:package com.xx.ws.util; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import javax.xml.bind.DatatypeConverter; public class AESOperat...
阅读全文
spring security 非页面登录
摘要:参考https://stackoverflow.com/questions/36937414/auto-login-spring-securityUserDetails userDetails = userDetailsService.loadUserByUsername(username);Aut
阅读全文
springboot重定向
摘要:参考https://www.cnblogs.com/kxkl123/p/7800967.html public String test() { return "redirect:/"; }
阅读全文
url获取参数
摘要:参考http://www.runoob.com/w3cnote/js-get-url-param.html
阅读全文
webservice jaxws header验证
摘要:@WebService @HandlerChain public class UserService { ... } package com.xx.ws.header; import org.w3c.dom.Node; import javax.xml.namespace.QName; import javax.xml.soap.*; import javax.xml.ws.hand...
阅读全文
springboot+cxf 开发webservice
摘要:参考 https://www.cnblogs.com/fuxin41/p/6289162.html pom.xml WebServiceConfig.java UserService.java UserServiceImpl.java Application.java ServletInitiali
阅读全文
springboot取得resources下的文件
摘要:参考http://blog.csdn.net/programmeryu/article/details/58002218
阅读全文
java rsa 加解密
摘要:参考 http://blog.csdn.net/a394268045/article/details/52232120
阅读全文
springboot CommandLineRunner
摘要:@SpringBootApplicationpublic class Application implements CommandLineRunner { public static void main(String[] args) { SpringApplication.run(Applicati
阅读全文
jdbcTemplate in
摘要:参考 http://blog.csdn.net/gaopeng0071/article/details/75049952 使用NamedParameterJdbcTemplate public class xxDao { }
阅读全文
dhtmlx uploader使用
摘要:前端:{type : "upload", mode : "html4", name : "importFile", inputWidth : 300, url : "/base/baseSkuProp/import"} fileForm.attachEvent("onUploadComplete",
阅读全文
参考 - spring boot 静态变量注入值
摘要:参考http://blog.csdn.net/zhayuyao/article/details/78553417
阅读全文