📄 hellobean.java
字号:
package example;import javax.annotation.Resource;import javax.ejb.Stateless;import javax.ejb.TransactionAttribute;import static javax.ejb.TransactionAttributeType.SUPPORTS;import javax.webbeans.Named;/** * Implementation of the Hello bean. */@Statelesspublic class HelloBean implements Hello { @Named("greeting") private String _greeting; /** * Returns a hello, world string. */ @TransactionAttribute(SUPPORTS) public String hello() { return _greeting; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -