- 博客(7)
- 收藏
- 关注
原创 mysql的FIND_IN_SET函数
表结构与数据-- ------------------------------ Table structure for class-- ----------------------------DROP TABLE IF EXISTS `class`;CREATE TABLE `class` ( `id` int(11) NOT NULL, `class_name` varch...
2018-11-08 17:42:37
250
原创 自定义validate注解校验
/** * @author yangyh * @since 2018/10/18 */@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER})@Retention(RUNTIME)@Documented@Constraint(validatedBy = ListStringLength.ListStrin...
2018-10-18 14:06:36
1629
原创 Double 类型精度问题
public static void main(String[] args) { double d1 = 1.1D; double d2 = 2.2D; double d3 = d1+d2; System.out.println("d1+d2= "+d3); BigDecimal b1 = new BigDecima...
2018-08-08 17:06:27
3316
原创 String
/** * @author yangyh * @Description * @date 2018/6/28 */public class Test { public static void main(String[] args) { String string = ""; for(int i=0;i<10000;i++){ ...
2018-06-28 14:26:49
255
原创 Java反汇编命令,javap
package com;/** * @author yangyh * @Description * @date 2018/6/28 */public class Test { public static void main(String[] args) { String string = ""; for(int i=0;i<10000;...
2018-06-28 14:14:36
1144
原创 quartz 定时任务动态管理
MyJob.javapackage com.hjh.mall.quartz.promotion;import java.util.Date;import org.quartz.Job;import org.quartz.JobExecutionContext;import org.quartz.JobExecutionException;/** * @Project: mall-uag * ...
2018-06-28 13:57:09
1240
原创 @Scheduled 读取配置文件
只是测试用的@Log4j@Configuration@PropertySource(value = "classpath:application.yml")public class SchedulerConfig { @Scheduled(cron = "${q}") public void update() throws Exception { log.error("[q]"); }}在你的...
2018-06-28 12:00:45
15424
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人