会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欣姐姐
博客园
首页
新随笔
联系
管理
订阅
1
2
3
4
5
···
33
下一页
2021年1月5日
TensorFlow——图
摘要: 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 欣姐姐
阅读(128)
评论(0)
推荐(0)
2020年10月28日
SpringMVC——我的第一个springmvc程序
摘要: 很开心自己独立完成了第一个springmvc的程序!!! 1. 创建springmvc工程 取名为MySpringMVC 点击finish之后自动加载一些文件,然后就创建好啦! 首先打开WEB-INF文件夹下的web.xml文件: 将图中的*.form改为/ 即 该文件主要对DispatcherSe
阅读全文
posted @ 2020-10-28 21:39 欣姐姐
阅读(121)
评论(0)
推荐(0)
2020年10月21日
Spring——模拟实现动态代理类
摘要: 动态代理有两种实现方式: 1. 基于接口实现动态代理:JDK动态代理 2. 基于继承实现动态代理:Cglib、Javassist动态代理(尚且不会) 本文目标:动态代理一个计算器功能 第一步:创建接口 ArithmeticCalculator.java: public interface Arith
阅读全文
posted @ 2020-10-21 20:22 欣姐姐
阅读(284)
评论(0)
推荐(0)
Spring——引入外部属性文件的两种方式
摘要: 紧接着重新配置c3p0连接池;
阅读全文
posted @ 2020-10-21 11:03 欣姐姐
阅读(218)
评论(0)
推荐(0)
Spring——直接配置c3p0连接池 ComboPooledDataSource时遇到的问题
摘要: 配置文件: 测试函数: 测试结果: 实现的过程中出现以下错误: 1. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: 解决:查看了mysql的版本是8.0.21,而在lib文件夹中导入的jar包是mysql-
阅读全文
posted @ 2020-10-21 10:13 欣姐姐
阅读(964)
评论(0)
推荐(0)
2020年10月20日
Spring——Bean属性赋值的三种方式
摘要: 先创建一个普通的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 欣姐姐
阅读(1605)
评论(0)
推荐(0)
2020年10月19日
Spring——IDEA使用Spring创建第一个hello world程序
摘要: 在试了好久之后,终于还是将IntelliJ idea的版本从2020社区版换成2020.2.3旗舰版,最后换成2018旗舰版 终于可以在一开始new Project的时候可以直接看到Spring的标志,感激涕零... 1. 下载安装2018旗舰版; 2. 新建Spring工程Hello; 创建的时候
阅读全文
posted @ 2020-10-19 20:43 欣姐姐
阅读(407)
评论(0)
推荐(0)
2020年9月2日
leetcode——57.插入区间
摘要: 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 欣姐姐
阅读(204)
评论(0)
推荐(0)
leetcode——43. 字符串相乘
摘要: 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 欣姐姐
阅读(139)
评论(0)
推荐(0)
2020年9月1日
leetcode——567. 字符串的排列
摘要: 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 欣姐姐
阅读(187)
评论(0)
推荐(0)
1
2
3
4
5
···
33
下一页
公告