07 2020 档案

摘要:优点:可以加快程序启动速度 缺点:配置错误的Bean在启动时不会被发现 默认:关闭 开启方法1.:pringApplicationBuilder的lazyInitialization方法 开启方法2:SpringApplication的setLazyInitialization方法 开启方法3:sp 阅读全文
posted @ 2020-07-25 17:09 阿布都日 阅读(163) 评论(0) 推荐(0)
摘要:springboot会提供FailureAnalyzer来提供失败原因和解决方案如果springboot未能提供此信息,可以把debug设置为true来获取调试信息 阅读全文
posted @ 2020-07-25 16:59 阿布都日 阅读(168) 评论(0) 推荐(0)
摘要:spring.main.log-startup-info=true 可以继承SpringApplication类并实现logStartupInfo来记录其他日志信息 @SpringBootApplication public class MeraspringApplication { public 阅读全文
posted @ 2020-07-25 16:54 阿布都日 阅读(256) 评论(0) 推荐(0)
摘要:[annotations] @ComponentScan @ConfigurationPropertiesScan @EntityScan @SpringBootApplication @Entity @EnableAutoConfiguration @Configuration @Import @ 阅读全文
posted @ 2020-07-25 16:15 阿布都日 阅读(156) 评论(0) 推荐(0)
摘要:#检查java版本,java版本要大于等于1.8 java -version #忽略cli,maven的安装 #maven命令: mvn package:在当前目录创建pom.xml文件执行此命令就会创建一个maven项目 <?xml version="1.0" encoding="UTF-8"?> 阅读全文
posted @ 2020-07-25 14:14 阿布都日 阅读(135) 评论(0) 推荐(0)
摘要://引入命名空间 xmlns:th="http://www.thymeleaf.org" //用th:<prop>替换<prop>属性的值 <h4 th:text="${hello}" ></h4> 1 Fragment inclusion th:insert th:replace 2 Fragme 阅读全文
posted @ 2020-07-25 11:41 阿布都日 阅读(209) 评论(0) 推荐(0)
摘要:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 阅读全文
posted @ 2020-07-25 11:02 阿布都日 阅读(94) 评论(0) 推荐(0)
摘要:1. JSP 2. Velocity 3. Freemarker 4. Thymeleaf 阅读全文
posted @ 2020-07-25 10:20 阿布都日 阅读(69) 评论(0) 推荐(0)
摘要:<dependency> <groupId>org.webjars</groupId> <artifactId>jquery</artifactId> <version>3.5.1</version> </dependency> 阅读全文
posted @ 2020-07-25 10:03 阿布都日 阅读(60) 评论(0) 推荐(0)
摘要:springboot的静态资源加载是通过WebMvcAutoConfiguration类实现的,下面的方法是加载资源配置的方法: 阅读全文
posted @ 2020-07-25 09:55 阿布都日 阅读(142) 评论(0) 推荐(0)
摘要:日志框架: JUL(java.util.logging):实现 JCL:标准 jboss-logging:标准 ####logback####:实现 ####log4j####:实现 log4j2:实现 slf4j:标准 问题: spring=>commons-logging Hibernate=> 阅读全文
posted @ 2020-07-24 16:19 阿布都日 阅读(116) 评论(0) 推荐(0)
摘要:/** * @SpringBootApplication :是以下三个注解的和 * @SpringBootConfiguration :备注配置类 * @EnableAutoConfiguration :备注开启自动配置 * @ComponentScan :备注包扫描 */ /** * @RestC 阅读全文
posted @ 2020-07-24 15:41 阿布都日 阅读(170) 评论(0) 推荐(0)
摘要:1. 创建一个maven项目 2. POM文件中导入依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.1.R 阅读全文
posted @ 2020-07-24 13:40 阿布都日 阅读(1292) 评论(0) 推荐(0)
摘要:springboot静态资源配置 spring.resources.static-locations 指定静态资源路径(控制器访问路径和样式脚本所在路径) classpath:templates/,classpath:static/ spring.mvc.view.prefix 视图(控制器转发路径 阅读全文
posted @ 2020-07-23 22:54 阿布都日 阅读(255) 评论(0) 推荐(0)
摘要://可以使用ConsumerReBalanceListener来扩展实现自定义存储 //提交方法和获取offset方法得自己实现 阅读全文
posted @ 2020-07-20 21:28 阿布都日 阅读(280) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 package com.perfect.kafka; import org.apac 阅读全文
posted @ 2020-07-20 21:14 阿布都日 阅读(331) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 package com.perfect.kafka; import org.apac 阅读全文
posted @ 2020-07-20 20:53 阿布都日 阅读(297) 评论(0) 推荐(0)
摘要:--一条记录变多条记录 select regexp_split_to_table(<字段>,',') as <新字段名> from <数据库表> where <查询条件> --多条记录变一条记录 select string_agg(<字段>,'') as <新字段名> from <数据库表> whe 阅读全文
posted @ 2020-07-20 16:05 阿布都日 阅读(117) 评论(0) 推荐(0)
摘要:@Data :编译时-自动生成Getter和Setter方法(编码时idea会报错,但是可以正常运行) 阅读全文
posted @ 2020-07-20 13:49 阿布都日 阅读(163) 评论(0) 推荐(0)
摘要:'--' as custom --该字段的名称是custom,值是默认值-- name as userName --该字段的名称是userName,值是实际值 select * from ( select cast(<name> as varchar) as userName, cast(id as 阅读全文
posted @ 2020-07-20 10:12 阿布都日 阅读(97) 评论(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)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 1. 必须换组 2. props.put(ConsumerConfig.AUTO_O 阅读全文
posted @ 2020-07-20 00:50 阿布都日 阅读(195) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 package com.perfect.kafka; import org.apac 阅读全文
posted @ 2020-07-20 00:41 阿布都日 阅读(135) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 package com.perfect.kafka; import org.apac 阅读全文
posted @ 2020-07-20 00:14 阿布都日 阅读(221) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 package com.perfect.kafka; import org.apac 阅读全文
posted @ 2020-07-19 23:58 阿布都日 阅读(121) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 package com.perfect.kafka; import org.apac 阅读全文
posted @ 2020-07-19 23:40 阿布都日 阅读(139) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 package com.perfect.kafka; import org.apac 阅读全文
posted @ 2020-07-19 23:33 阿布都日 阅读(144) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 package com.perfect.kafka; import org.apac 阅读全文
posted @ 2020-07-19 23:27 阿布都日 阅读(355) 评论(0) 推荐(0)
摘要:依赖 <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> </dependency> 代码 package com.perfect; import org.apache.kaf 阅读全文
posted @ 2020-07-19 23:01 阿布都日 阅读(359) 评论(0) 推荐(0)
摘要://1. 启动zk bin/zookeeper-server-start.sh config/zookeeper.properties //2. 启动kafka bin/kafka-server-start.sh config/server.properties //3. 创建topic bin/k 阅读全文
posted @ 2020-07-19 22:25 阿布都日 阅读(514) 评论(0) 推荐(0)
摘要:SELECT * from t_zrr where abs(mod(hashtext(c_bh),<split_num>))=<split_id> 阅读全文
posted @ 2020-07-17 17:20 阿布都日 阅读(253) 评论(0) 推荐(0)
摘要:--都满足条件时连接 select * from abu_1 inner join abu_2 on abu_1.age = abu_2.age --表一不变,满足条件的连接到表1 select * from abu_1 left join abu_2 on abu_1.age = abu_2.ag 阅读全文
posted @ 2020-07-16 21:15 阿布都日 阅读(105) 评论(0) 推荐(0)
摘要:select * from abu_1 limit 10 select * from abu_1 WHERE name in ('0c795a887ac','f0e814c') select * from abu_1 where updatetime BETWEEN '2000-05-28' and 阅读全文
posted @ 2020-07-16 21:03 阿布都日 阅读(93) 评论(0) 推荐(0)
摘要:select name, id, age, address, minzu, gzaddr, zy, whcd, zzmm, phone, updatetime from person.abu_1 select DISTINCT zzmm from person.abu_1 select name, 阅读全文
posted @ 2020-07-16 20:52 阿布都日 阅读(119) 评论(0) 推荐(0)
摘要:<!--shade打包--><build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.1</versi 阅读全文
posted @ 2020-07-16 12:54 阿布都日 阅读(151) 评论(0) 推荐(0)
摘要:1. 导入以来 <dependency> <groupId>org.apache.kafka</groupId> <artifectId>kafka-clients</artifactId> <version>0.11.0.0</version> </dependency> 阅读全文
posted @ 2020-07-15 23:43 阿布都日 阅读(154) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-07-15 23:36 阿布都日 阅读(89) 评论(0) 推荐(0)
摘要:1. Producer事务保证即使producer挂了又重新启动了,kafka内部消息的精准性 2. Cunsmer事务保证精准一次消费 阅读全文
posted @ 2020-07-15 23:28 阿布都日 阅读(174) 评论(0) 推荐(0)
摘要:1. 修改配置文件comsumer.properties excluse.internal.topics=false //0.11.0.0之前的版本 2. kafkaf-console-consomer.sh --topic __consumer_offsets --zookeeper host:2 阅读全文
posted @ 2020-07-15 22:32 阿布都日 阅读(201) 评论(0) 推荐(0)
摘要:nohup command > nohup.out 2>&1 & 阅读全文
posted @ 2020-07-15 19:45 阿布都日 阅读(269) 评论(0) 推荐(0)
摘要:<dependency> <groupId>com.sparkjava</groupId> <artifactId>spark-core</artifactId> <version>2.9.0</version> </dependency> package com.example; import o 阅读全文
posted @ 2020-07-14 11:40 阿布都日 阅读(1958) 评论(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 阅读全文
posted @ 2020-07-12 23:11 阿布都日 阅读(540) 评论(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 阅读全文
posted @ 2020-07-12 22:52 阿布都日 阅读(211) 评论(0) 推荐(0)
摘要:POM <?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" xs 阅读全文
posted @ 2020-07-12 22:10 阿布都日 阅读(168) 评论(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 21:41 阿布都日 阅读(196) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2020-07-12 20:43 阿布都日 阅读(108) 评论(0) 推荐(0)
摘要:POM: <?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" x 阅读全文
posted @ 2020-07-12 19:57 阿布都日 阅读(170) 评论(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 16:38 阿布都日 阅读(168) 评论(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" xs 阅读全文
posted @ 2020-07-12 15:51 阿布都日 阅读(134) 评论(0) 推荐(0)
摘要:pom配置: <?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" 阅读全文
posted @ 2020-07-12 15:36 阿布都日 阅读(171) 评论(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" xs 阅读全文
posted @ 2020-07-12 15:06 阿布都日 阅读(167) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2020-07-12 14:47 阿布都日 阅读(194) 评论(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" xs 阅读全文
posted @ 2020-07-12 14:43 阿布都日 阅读(133) 评论(0) 推荐(0)
摘要:spring中基于XML的AOP配置步骤 1. 把通知类Bean也交给spring来管理 2. 使用aop:config表明开始aop配置 3. 使用aop:aspect标签表明配置切面 id属性:给切面提供一个唯一标识 ref属性:指定通知类bean的ID 4. 在aop:aspect标签的内部使 阅读全文
posted @ 2020-07-12 14:21 阿布都日 阅读(497) 评论(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" xs 阅读全文
posted @ 2020-07-12 14:20 阿布都日 阅读(130) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2020-07-12 13:35 阿布都日 阅读(466) 评论(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 13:34 阿布都日 阅读(153) 评论(0) 推荐(0)
摘要:配置: jdbc.driver=org.h2.Driver jdbc.url=jdbc:h2:file:~/.h2/h2 jdbc.username=root jdbc.password=123456 <?xml version="1.0" encoding="UTF-8"?> <project x 阅读全文
posted @ 2020-07-12 11:50 阿布都日 阅读(202) 评论(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)
摘要:配置文件: jdbc.driver=org.h2.Driver jdbc.url=jdbc:h2:file:~/.h2/h2 jdbc.username=root jdbc.password=123456 pom文件 <?xml version="1.0" encoding="UTF-8"?> <p 阅读全文
posted @ 2020-07-12 01:35 阿布都日 阅读(153) 评论(0) 推荐(0)
摘要:1. 加入Spring-test依赖 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>5.2.7.RELEASE</version> </depende 阅读全文
posted @ 2020-07-11 23:21 阿布都日 阅读(125) 评论(0) 推荐(0)
摘要:properties配置 jdbc.driver=org.h2.Driver jdbc.url=jdbc:h2:file:~/.h2/h2 jdbc.username=root jdbc.password=123456 pom配置 <?xml version="1.0" encoding="UTF- 阅读全文
posted @ 2020-07-11 22:53 阿布都日 阅读(200) 评论(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-11 21:39 阿布都日 阅读(143) 评论(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-11 21:23 阿布都日 阅读(160) 评论(0) 推荐(0)
摘要:driverClass=org.h2.Driver jdbcUrl=jdbc:h2:file:~/.h2/h2 user=root password=123456 阅读全文
posted @ 2020-07-11 20:38 阿布都日 阅读(2076) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2020-07-11 18:50 阿布都日 阅读(334) 评论(0) 推荐(0)
摘要:用于创建对象==<bean> value属性指定值,默认值是当前类名-首字母小写 1. @Component2. @Controller:表现层3. @Service:业务层4. @Repository:持久层 用于注入数据==<property>1. @Autowired:类型匹配->名称匹配2. 阅读全文
posted @ 2020-07-11 18:46 阿布都日 阅读(139) 评论(0) 推荐(0)
摘要:复杂类型: 1. 数组 2. List 3. Set 4. Map 5. Properties <!--array,list,map,props,set标签用于注入集合类型--> <bean id="accountService" class="com.example.service.impl.Ac 阅读全文
posted @ 2020-07-11 18:27 阿布都日 阅读(62) 评论(0) 推荐(0)
摘要:<!--property标签用于初始化bean对象--> <!--name:set方法名定位--> <!--value:注入基本类型和string类型 ref:注入bean对象--> <bean id="accountService" class="com.example.service.impl. 阅读全文
posted @ 2020-07-11 18:07 阿布都日 阅读(328) 评论(0) 推荐(0)
摘要:<!--constructor-arg标签用于初始化bean对象--> <!--type:类型定位 index:位置定位 name:形参名定位--> <!--value:注入基本类型和string类型 ref:注入bean对象--> <bean id="accountService" class=" 阅读全文
posted @ 2020-07-11 18:02 阿布都日 阅读(137) 评论(0) 推荐(0)
摘要:依赖注入: 可注入数据: 1. 基本类型+String 2. Bean对象 3. 集合类型 注入方式: 1. 构造函数注入 2. set方法注入 3. 注解注入 阅读全文
posted @ 2020-07-11 17:54 阿布都日 阅读(98) 评论(0) 推荐(0)
摘要:Bean的三种创建方式 <!--方式一:默认构造函数创建--> <bean id="accountService" class="com.example.service.impl.AccountServiceImpl"></bean> <!--方式二:使用普通工厂创建--> <bean id="in 阅读全文
posted @ 2020-07-11 17:30 阿布都日 阅读(318) 评论(0) 推荐(0)
摘要:Resource resource = new ClassPathResource("bean.xml"); BeanFactory factory = new XmlBeanFactory(resource); 阅读全文
posted @ 2020-07-11 15:29 阿布都日 阅读(221) 评论(0) 推荐(0)
摘要:ApplicationContext ac=ClassPathXmlApplicationContext("beans.xml"); 阅读全文
posted @ 2020-07-11 15:23 阿布都日 阅读(328) 评论(0) 推荐(0)
摘要:ApplicationContext:创建对象采用立即加载的方式。 BeanFactory:创建对象采用延迟加载的方式。 阅读全文
posted @ 2020-07-11 15:22 阿布都日 阅读(133) 评论(0) 推荐(0)
摘要:ClassPathXmlApplicationContext:它可以加载类路径下的配置文件,文件必须在类路径下。 FileSystemXmlApplicationContext:它可以加载磁盘任意路径下的配置文件,必须有访问权限。 AnnotationConfigApplicationContext 阅读全文
posted @ 2020-07-11 15:09 阿布都日 阅读(311) 评论(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 15:05 阿布都日 阅读(485) 评论(0) 推荐(0)
摘要:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2020-07-11 14:32 阿布都日 阅读(125) 评论(0) 推荐(0)
摘要:官网:http://spring.io/ 下载地址:http://repo.springsource.org/libs-release-local/org/springframework/spring 阅读全文
posted @ 2020-07-11 14:02 阿布都日 阅读(192) 评论(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.example.service.ui; import com.example.service.IAccountService; import com.example.service.impl.AccountServiceImpl; /** * 模拟一个表现层,用于调用业务层 阅读全文
posted @ 2020-07-11 00:36 阿布都日 阅读(182) 评论(0) 推荐(0)
摘要:降低依赖-编译期不依赖,运行期才依赖 1. 编译器依赖 package com.example.jdbc; import java.sql.*; public class JdbcDemo { public static void main(String[] args) throws SQLExce 阅读全文
posted @ 2020-07-11 00:17 阿布都日 阅读(166) 评论(0) 推荐(0)
摘要:mysql -uroot -p1234 create database eesy; use eesy; create table account( id int primary key auto_increment, name varchar(40), money float )character 阅读全文
posted @ 2020-07-10 23:48 阿布都日 阅读(93) 评论(0) 推荐(0)