标签:获取 public oid ack string类 分析 pre named package
hello.java:
package javaeetutorial.hello1; //这是一个java包 import javax.enterprise.context.RequestScoped;//导入RequestScoped包 import javax.inject.Named;//导入Named包 @Named @RequestScoped public class Hello { //定义一个类 private String name; //定义一个string类型的私有变量name public Hello() { } public String getName() { return name; }//获取变量name的值 public void setName(String user_name) { this.name = user_name; //给name赋值 } }
标签:获取 public oid ack string类 分析 pre named package
原文地址:https://www.cnblogs.com/tily123/p/10633988.html