我只是想知道web.config文件中标记的用途以及它扮演的角色。 有人可以将我转介到文档资源或向我解释此标记及其属性的使用。
答案 0 :(得分:2)
就我所见,它并没有出现在web.config文件的标准布局中。
web.config中的standard way of handling db connections是:
<configuration>
<!-- Configuration section-handler declaration area. -->
<configSections>
<sectionGroup name="databasesettings">
这可能是您的配置中的custom section,在这种情况下,它将被定义为:
@Entity
@Converter(name = "code", converterClass = CodeConverter.class)
@Table(name = "REQUEST")
@Inheritance(strategy = JOINED)
@DiscriminatorColumn(name = "REQUEST_DISC", discriminatorType = STRING)
@SequenceGenerator(name = "REQUEST_SEQ", sequenceName = "Request_Sequence", allocationSize = 1, initialValue = 1)
public abstract class Request implements Serializable {
private static final long serialVersionUID = 5740148848518876165L;
@Id
@Column(name = "REQUEST_ID", nullable = false, length = 16)
@GeneratedValue(generator = "REQUEST_SEQ")
private long requestId;
...
}