首页 > 其他分享 >12.5

12.5

时间:2023-12-18 21:24:09浏览次数:31  
标签:String NoArgsConstructor private AllArgsConstructor 12.5 import lombok

复制代码

package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Course {
    private String courseID;
    private String courseName;
    private int courseCount;
    private String courseTeacher;
    private int count;
}
复制代码

Information

复制代码
package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Information {
    private String courseID;
    private String teacherID;
    private String studentID;
}
复制代码

Student

复制代码
package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    private String studentID;
    private String studentName;
    private String studentSex;
    private String studentClass;
    private String studentMajor;
}
复制代码

Teacher

复制代码
package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher {
    private String teacherID;
    private String teacherName;
    private String teacherSex;
    private String teacherCollege;
    private String position;
}
复制代码

User

复制代码
package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    private  String userName;
    private String password;
    private  String position;
}

标签:String,NoArgsConstructor,private,AllArgsConstructor,12.5,import,lombok
From: https://www.cnblogs.com/gjsgjs/p/17912305.html

相关文章

  • 12.5
    <%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPEhtml><html><head><metacharset="UTF-8"><title>出差申请单</title></head&......
  • 12.5
    Coursepackagecom.example.pojo;importlombok.AllArgsConstructor;importlombok.Data;importlombok.NoArgsConstructor;@Data@NoArgsConstructor@AllArgsConstructorpublicclassCourse{privateStringcourseID;privateStringcourseName;p......
  • 12.5每日总结9
    查看Java帮助手册或其它资料,用“java.net.URL”和“org.apache.hadoop.fs.FsURLStreamHandlerFactory”编程完成输出HDFS中指定文件的文本到终端中。importjava.io.IOException;importjava.io.InputStream;importjava.net.URL;importorg.apache.hadoop.fs.*;importorg.apach......
  • 12.5每日总结8
    编程实现一个类“MyFSDataInputStream”,该类继承“org.apache.hadoop.fs.FSDataInputStream”,要求如下:实现按行读取HDFS中指定文件的方法“readLine()”,如果读到文件末尾,则返回空,否则返回文件一行的文本。importjava.io.BufferedReader;importjava.io.IOException;importjav......
  • 12.5每日总结
    文件创建以及覆盖importjava.io.FileInputStream;importjava.io.IOException;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.FSDataOutputStream;importorg.apache.hadoop.fs.FileSystem;importorg.apache.hadoop.fs.Path;publicclassCopyFr......
  • 12.5每日总结3
    将HDFS中指定文件的内容输出到终端中;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importorg.apache.hadoop.fs.FileSystem;importjava.io.*;publicclassCat{/***读取文件内容*/publicstaticvoidcat(Configuration......
  • 12.5每日总结2
    从HDFS中下载指定文件,如果本地文件与要下载的文件名称相同,则自动对下载的文件重命名;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importorg.apache.hadoop.fs.FileSystem;importjava.io.*;publicclassCopyToLocal{/***下载文件......
  • 12.5每日总结5
     给定HDFS中某一个目录,输出该目录下的所有文件的读写权限、大小、创建时间、路径等信息,如果该文件是目录,则递归输出该目录下所有文件相关信息;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importorg.apache.hadoop.fs.FileSystem;importjava.......
  • 12.5每日总结4
     显示HDFS中指定的文件的读写权限、大小、创建时间、路径等信息;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importorg.apache.hadoop.fs.FileSystem;importjava.io.*;importjava.text.SimpleDateFormat;publicclassList{/***......
  • 12.5每日总结6
    提供一个HDFS内的文件的路径,对该文件进行创建和删除操作。如果文件所在目录不存在,则自动创建目录;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importjava.io.*;publicclassRemoveOrMake{/***判断路径是否存在*/publics......