随笔分类 - java
摘要:spring.main.log-startup-info=true 可以继承SpringApplication类并实现logStartupInfo来记录其他日志信息 @SpringBootApplication public class MeraspringApplication { public
阅读全文
摘要:@Data :编译时-自动生成Getter和Setter方法(编码时idea会报错,但是可以正常运行)
阅读全文
摘要:package com.thunisoft.zsj.fusion.row; import org.junit.jupiter.api.Test; import org.springframework.jdbc.core.ColumnMapRowMapper; import org.springfra
阅读全文
摘要:Class<Person> c = Person.class; Person p = c.newInstanace(); Method m = c.getMethod("setAge",Integer.class); m.invoke(p,33);
阅读全文
摘要:<?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
阅读全文
摘要:package com.example; /** * 消费者 */ public class Client { public static void main(String[] args) { IProducer producer = Proxy2.getProducer(Producer.clas
阅读全文
摘要:package com.example.ui; import com.example.factory.BeanFactory; import com.example.service.IAccountService; /** * 模拟一个表现层,用于调用业务层 */ public class Clie
阅读全文
摘要:package com.example.ui; import com.example.factory.BeanFactory; import com.example.service.IAccountService; import com.example.service.impl.AccountSer
阅读全文
摘要:package com.hadoop.hdfs; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import
阅读全文
摘要:/etc/profile export JAVA_HOME= export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=.:$JAVA_HOME/lib
阅读全文
摘要:实现JAVA平台的一共有两个产品: JDK:JAVA开发工具包 JRE:JAVA运行环境
阅读全文
摘要:xxxxxxxxxx public static void main(String[] args) { Connection connection = null; PreparedStatement preparedStatement = null; ResultSet resultSet=null
阅读全文

浙公网安备 33010602011771号