java ee框架的注解以下这些是什么意思?该怎么用?请注意细节。

 nuabolalalala6_535 发布于 2022-10-26 14:06

java ee框架的注解以下这些是什么意思?该怎么用?请注意细节。
1,@RequestMapping(value="${adminPath}/supclin") 类上的注解
2,@RequestMapping(value={"todo",""})
3,@RequestMapping(value="create", method=RequestMethod.GET(或POST))
4,@RequestMapping(value="treeList/{typeAlias}.xml") 方法上的注解
5,(@PathVariable("typeAlias") String typeAlias) 方法的参数
6,@Target({ElementType.TYPE}) 接口上的注解
7,@Retention(RetentionPolicy.RUNTIME) 接口上的注解
8,@Inherited 接口上的注解
9,@ActiveProfiles("production") 类上的注解
10,@ContextConfiguration(locations={"/spring-context.xml"}) 类上的注解
11,@Value("${adminPath}") 属性上的注解
12,@ExceptionHandler({BindException.class,ConstraintViolationException.class,ValidationException.class}) 方法上的注解
13,@InitBinder 方法上的注解
14,@JsonFormat(pattern="yyyy-mm-dd HH:mm:ss") getter上的注解
15,@JsonIgnore getter上的注解
16,@ExcelField(title="居民ID",align=2,sort=1)
17,@RequiresPermissions("act:model:edit") 方法上的注解
18,@RequiresPermissions("billing:bhBillingAdmin:view")
19,@RequiresPermissions("billing:bhBillingLaddercharges:edit")
20,@NotNULL
21,@Pattern(regexp="/n\d+(\.\d+)?$/",message="公用事业账户金额不合法") getter上的注解
22,@Length(min=0,max=50,message="...") getter上的注解
23,@NotBlank(message="...") getter上的注解
24,@Digits(integer=10,fraction=2,message="...") getter上的注解
25,@Size(min=11,max=11,message="...") getter上的注解
26,@Email(message="...") getter上的注解
27,@Transactional(readOnly=false) 方法上的注解
28,@ModelAttribute 方法上的注解
29,@RequestMapping(value="save")
30,@RequestMapping(value="index-{siteId}${urlsuffix}")
31,@RequestParam(required=false)
hibernate的注解:
32,@Entity
33,@Table(name="")
34,@Id
35,@GeneratedValue(strategy=GenerationType.IDENTITY)
36,@Column(name="")
37,@ManyToOne(targetEntity=DayReportConfigEntity.class)
38,@JoinColumn(name="",updatable=true,insertable=true,nullable=true)
39,@OrderBy("item_order")
40,@OneToMany(targetEntity= fetch=FetchType.LAZY)
41,@Transient

1 个回答
  • 看文档说明啊。

    2022-10-27 01:07 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有