随笔分类 -  java

摘要:spring.main.log-startup-info=true 可以继承SpringApplication类并实现logStartupInfo来记录其他日志信息 @SpringBootApplication public class MeraspringApplication { public 阅读全文
posted @ 2020-07-25 16:54 阿布都日 阅读(256) 评论(0) 推荐(0)
摘要:@Data :编译时-自动生成Getter和Setter方法(编码时idea会报错,但是可以正常运行) 阅读全文
posted @ 2020-07-20 13:49 阿布都日 阅读(163) 评论(0) 推荐(0)
摘要:package com.thunisoft.zsj.fusion.row; import org.junit.jupiter.api.Test; import org.springframework.jdbc.core.ColumnMapRowMapper; import org.springfra 阅读全文
posted @ 2020-07-20 09:31 阿布都日 阅读(367) 评论(0) 推荐(0)
摘要:Class<Person> c = Person.class; Person p = c.newInstanace(); Method m = c.getMethod("setAge",Integer.class); m.invoke(p,33); 阅读全文
posted @ 2020-07-12 23:06 阿布都日 阅读(83) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2020-07-12 11:04 阿布都日 阅读(162) 评论(0) 推荐(0)
摘要:package com.example; /** * 消费者 */ public class Client { public static void main(String[] args) { IProducer producer = Proxy2.getProducer(Producer.clas 阅读全文
posted @ 2020-07-12 10:36 阿布都日 阅读(163) 评论(0) 推荐(0)
摘要:package com.example.ui; import com.example.factory.BeanFactory; import com.example.service.IAccountService; /** * 模拟一个表现层,用于调用业务层 */ public class Clie 阅读全文
posted @ 2020-07-11 13:55 阿布都日 阅读(191) 评论(0) 推荐(0)
摘要:package com.example.ui; import com.example.factory.BeanFactory; import com.example.service.IAccountService; import com.example.service.impl.AccountSer 阅读全文
posted @ 2020-07-11 12:23 阿布都日 阅读(330) 评论(0) 推荐(0)
摘要:package com.hadoop.hdfs; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import 阅读全文
posted @ 2020-06-25 16:34 阿布都日 阅读(116) 评论(0) 推荐(0)
摘要:/etc/profile export JAVA_HOME= export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib 阅读全文
posted @ 2020-06-22 00:58 阿布都日 阅读(1345) 评论(0) 推荐(0)
摘要:实现JAVA平台的一共有两个产品: JDK:JAVA开发工具包 JRE:JAVA运行环境 阅读全文
posted @ 2020-06-11 12:15 阿布都日 阅读(112) 评论(0) 推荐(0)
摘要:xxxxxxxxxx public static void main(String[] args) { Connection connection = null; PreparedStatement preparedStatement = null; ResultSet resultSet=null 阅读全文
posted @ 2020-06-07 10:46 阿布都日 阅读(122) 评论(0) 推荐(0)