Skip to content

Commit 1a7fd60

Browse files
authored
Update B.1. Meta-data format.md
1 parent 21efc4c commit 1a7fd60

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

X. Appendices/B.1. Meta-data format.md

+39-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
"name": "server",
88
"type": "org.springframework.boot.autoconfigure.web.ServerProperties",
99
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties"
10+
},
11+
{
12+
"name": "spring.jpa.hibernate",
13+
"type": "org.springframework.boot.autoconfigure.orm.jpa.JpaProperties$Hibernate",
14+
"sourceType": "org.springframework.boot.autoconfigure.orm.jpa.JpaProperties",
15+
"sourceMethod": "getHibernate()"
1016
}
1117
...
1218
],"properties": [
@@ -18,10 +24,42 @@
1824
{
1925
"name": "server.servlet-path",
2026
"type": "java.lang.String",
21-
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties"
27+
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties",
2228
"defaultValue": "/"
29+
},
30+
{
31+
"name": "spring.jpa.hibernate.ddl-auto",
32+
"type": "java.lang.String",
33+
"description": "DDL mode. This is actually a shortcut for the \"hibernate.hbm2ddl.auto\" property.",
34+
"sourceType": "org.springframework.boot.autoconfigure.orm.jpa.JpaProperties$Hibernate"
2335
}
2436
...
37+
],"hints": [
38+
{
39+
"name": "spring.jpa.hibernate.ddl-auto",
40+
"values": [
41+
{
42+
"value": "none",
43+
"description": "Disable DDL handling."
44+
},
45+
{
46+
"value": "validate",
47+
"description": "Validate the schema, make no changes to the database."
48+
},
49+
{
50+
"value": "update",
51+
"description": "Update the schema if necessary."
52+
},
53+
{
54+
"value": "create",
55+
"description": "Create the schema and destroy previous data."
56+
},
57+
{
58+
"value": "create-drop",
59+
"description": "Create and then destroy the schema at the end of the session."
60+
}
61+
]
62+
}
2563
]}
2664
```
2765
每个"property"是一个配置节点,用户可以使用特定的值指定它。例如,`server.port``server.servlet-path`可能在`application.properties`中如以下定义:

0 commit comments

Comments
 (0)