idea创建javaproject项目,引入jar包并打包
2021-02-09 10:17
标签:test uil mamicode his border ott play 打包 out idea创建javaproject项目,引入jar包并打包 标签:test uil mamicode his border ott play 打包 out 原文地址:https://www.cnblogs.com/ziyue7575/p/e1c7c348b6497c117f4c64270d6878ae.html
创建项目
引入jar包依赖
项目打包为jar包idea创建javaproject项目,引入jar包并打包
创建项目
引入jar包依赖
lib
文件夹中
package Main;
import com.alibaba.fastjson.JSON;
public class TestMain {
public static void main(String[] args) {
System.out.println("12312321423");
User user=new User();
user.setAge(10);
user.setName("nihao");
System.out.println(JSON.toJSONString(user));
}
}
class User{
private String name;
private Integer age;
public User() { }
public String getName() {
return name;
}
public Integer getAge() {
return age;
}
public void setName(String name) {
this.name = name;
}
public void setAge(Integer age) {
this.age = age;
}
}
项目打包为jar包
文章标题:idea创建javaproject项目,引入jar包并打包
文章链接:http://soscw.com/index.php/essay/53047.html