(java进阶之IO流) IO流的概念(大纲): 1.InputStream和OutputStream的继承关系图 2.Reader和Writer的继承关系图 3.文件专属流(加※为重点掌握) ※FileInputStream(文件字节输入流)实例: package fileInputStream; ...
                            
                            
                                分类:
编程语言   时间:
2021-06-30 17:37:25   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    乱码问题 测试步骤: 1、我们可以在首页编写一个提交的表单 <form action="/e/t" method="post"> <input type="text" name="name"> <input type="submit"> </form> ?	2、后台编写对应的处理类 @Control ...
                            
                            
                                分类:
其他好文   时间:
2021-06-30 17:32:30   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                @GetMapping("/send") public String getmessage(HttpServletRequest request) { request.setAttribute("msg","跳转"); //设置参数 request.setAttribute("code",123); ...
                            
                            
                                分类:
编程语言   时间:
2021-06-29 16:08:05   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    在前边的文章中分享了spring如何实现属性的注入,有注解和配置文件两种方式,通过这两种方式可以实现spring中属性的注入,具体配置可查看《spring入门(一)【依赖注入】》,那么spring是如何做到依赖注入的,今天不准备过多的引入源码,首先要搞清楚一些原理性的东西,然后再通过源码进行佐证。  ...
                            
                            
                                分类:
编程语言   时间:
2021-06-29 16:07:06   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    源码地址:https://gitee.com/fighter3/eshop-project.git 持续更新中…… 在上一节我们已经使用OpenFeign完成了服务间的调用。想一下,假如我们一个服务链路上上下游有十几个服务,每个服务有若干个节点,其中一个节点故障,上游请求打到故障的节点,加入请求一直 ...
                            
                            
                                分类:
编程语言   时间:
2021-06-29 16:06:48   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    1.会编程,参考实验 1.1编程实现词频统计基本操作 主函数 public static void main(String[] args) throws Exception{ Configuration conf = new Configuration(); //程序运行时参数 String[] o ...
                            
                            
                                分类:
其他好文   时间:
2021-06-29 16:02:29   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                this关键字含义 1. this代表什么 this代表对象, 代表的是当前对象, this里保存的是对象的地址. 谁是当前对象? 比如方法调用 t1.say() 在这个方法执行时 执行以下代码 : public String say() { return “姓名:” + name + “,年龄:” ...
                            
                            
                                分类:
编程语言   时间:
2021-06-29 16:00:27   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    LCS 操作对象:两个长度不一定相等的字符串。 例题 string s, t; int f[maxn][maxn]; int main() { cin >> s >> t; int ls = s.length(), lt = t.length(); for (int i = 1; i <= ls;  ...
                            
                            
                                分类:
其他好文   时间:
2021-06-29 15:57:12   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    一、数组的创建和初始化 (一)创建数组: import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(Syste ...
                            
                            
                                分类:
编程语言   时间:
2021-06-29 15:56:03   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    public class 数据类型学习 { public static void main(String[] args) { int i = 10; int i2 = 010;//8进制0 int i3 = 0x10;//16进制0x //long i4 = 40L; //Long类型要在数字后面加 ...
                            
                            
                                分类:
其他好文   时间:
2021-06-29 15:49:06   
                                阅读次数:
0