|
7 | 7 | "name": "server", |
8 | 8 | "type": "org.springframework.boot.autoconfigure.web.ServerProperties", |
9 | 9 | "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()" |
10 | 16 | } |
11 | 17 | ... |
12 | 18 | ],"properties": [ |
|
18 | 24 | { |
19 | 25 | "name": "server.servlet-path", |
20 | 26 | "type": "java.lang.String", |
21 | | - "sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties" |
| 27 | + "sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties", |
22 | 28 | "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" |
23 | 35 | } |
24 | 36 | ... |
| 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 | + } |
25 | 63 | ]} |
26 | 64 | ``` |
27 | 65 | 每个"property"是一个配置节点,用户可以使用特定的值指定它。例如,`server.port`和`server.servlet-path`可能在`application.properties`中如以下定义: |
|
0 commit comments