摘要: 1. 默认图 import tensorflow.compat.v1 as tf tf.disable_v2_behavior() def graph_demo(): # 图的演示 a_t = tf.constant(10) b_t = tf.constant(20) c_t = tf.add(a_ 阅读全文
posted @ 2021-01-05 16:20 欣姐姐 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 很开心自己独立完成了第一个springmvc的程序!!! 1. 创建springmvc工程 取名为MySpringMVC 点击finish之后自动加载一些文件,然后就创建好啦! 首先打开WEB-INF文件夹下的web.xml文件: 将图中的*.form改为/ 即 该文件主要对DispatcherSe 阅读全文
posted @ 2020-10-28 21:39 欣姐姐 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 动态代理有两种实现方式: 1. 基于接口实现动态代理:JDK动态代理 2. 基于继承实现动态代理:Cglib、Javassist动态代理(尚且不会) 本文目标:动态代理一个计算器功能 第一步:创建接口 ArithmeticCalculator.java: public interface Arith 阅读全文
posted @ 2020-10-21 20:22 欣姐姐 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 紧接着重新配置c3p0连接池; 阅读全文
posted @ 2020-10-21 11:03 欣姐姐 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 配置文件: 测试函数: 测试结果: 实现的过程中出现以下错误: 1. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: 解决:查看了mysql的版本是8.0.21,而在lib文件夹中导入的jar包是mysql- 阅读全文
posted @ 2020-10-21 10:13 欣姐姐 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 先创建一个普通的java类Car.java: 包含了构造函数以及get函数set函数、toString方法 package di; public class Car { private String brand; private String crop; private Double price; 阅读全文
posted @ 2020-10-20 10:40 欣姐姐 阅读(1518) 评论(0) 推荐(0) 编辑
摘要: 在试了好久之后,终于还是将IntelliJ idea的版本从2020社区版换成2020.2.3旗舰版,最后换成2018旗舰版 终于可以在一开始new Project的时候可以直接看到Spring的标志,感激涕零... 1. 下载安装2018旗舰版; 2. 新建Spring工程Hello; 创建的时候 阅读全文
posted @ 2020-10-19 20:43 欣姐姐 阅读(369) 评论(0) 推荐(0) 编辑
摘要: public int[][] insert(int[][] intervals, int[] newInterval) { int newStart = newInterval[0],newEnd = newInterval[1]; int idx = 0; int n = intervals.le 阅读全文
posted @ 2020-09-02 17:32 欣姐姐 阅读(168) 评论(0) 推荐(0) 编辑
摘要: public String multiply(String num1, String num2) { if(num1.equals("0") || num2.equals("0")){ return "0"; } String res = ""; if(num1.length()<num2.leng 阅读全文
posted @ 2020-09-02 16:21 欣姐姐 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Map<Character,Integer> ori = new HashMap<>(); public boolean checkInclusion(String s1, String s2) { char[] c = s1.toCharArray(); for(char c1:c){ ori.p 阅读全文
posted @ 2020-09-01 10:22 欣姐姐 阅读(178) 评论(0) 推荐(0) 编辑