32
32
@ ConditionalOnProperty (name = SPRINGDOC_ENABLED , matchIfMissing = true )
33
33
public class SpringDocConfigProperties {
34
34
35
- private Boolean showActuator = false ;
35
+ private boolean showActuator ;
36
36
37
37
private Webjars webjars = new Webjars ();
38
38
@@ -50,16 +50,26 @@ public class SpringDocConfigProperties {
50
50
51
51
private List <GroupConfig > groupConfigs = new ArrayList <>();
52
52
53
- private Boolean autoTagClasses = true ;
53
+ private boolean autoTagClasses = true ;
54
54
55
- public Boolean getAutoTagClasses () {
55
+ private boolean modelAndViewAllowed ;
56
+
57
+ public boolean isAutoTagClasses () {
56
58
return autoTagClasses ;
57
59
}
58
60
59
- public void setAutoTagClasses (Boolean autoTagClasses ) {
61
+ public void setAutoTagClasses (boolean autoTagClasses ) {
60
62
this .autoTagClasses = autoTagClasses ;
61
63
}
62
64
65
+ public boolean isModelAndViewAllowed () {
66
+ return modelAndViewAllowed ;
67
+ }
68
+
69
+ public void setModelAndViewAllowed (boolean modelAndViewAllowed ) {
70
+ this .modelAndViewAllowed = modelAndViewAllowed ;
71
+ }
72
+
63
73
public List <String > getPackagesToExclude () {
64
74
return packagesToExclude ;
65
75
}
@@ -84,11 +94,11 @@ public void setPackagesToScan(List<String> packagesToScan) {
84
94
this .packagesToScan = packagesToScan ;
85
95
}
86
96
87
- public Boolean getShowActuator () {
97
+ public boolean isShowActuator () {
88
98
return showActuator ;
89
99
}
90
100
91
- public void setShowActuator (Boolean showActuator ) {
101
+ public void setShowActuator (boolean showActuator ) {
92
102
this .showActuator = showActuator ;
93
103
}
94
104
@@ -145,7 +155,7 @@ public static class ApiDocs {
145
155
/**
146
156
* Weather to generate and serve a OpenAPI document.
147
157
*/
148
- private Boolean enabled = true ;
158
+ private boolean enabled = true ;
149
159
150
160
private Groups groups = new Groups ();
151
161
@@ -157,11 +167,11 @@ public void setPath(String path) {
157
167
this .path = path ;
158
168
}
159
169
160
- public Boolean getEnabled () {
170
+ public boolean isEnabled () {
161
171
return enabled ;
162
172
}
163
173
164
- public void setEnabled (Boolean enabled ) {
174
+ public void setEnabled (boolean enabled ) {
165
175
this .enabled = enabled ;
166
176
}
167
177
@@ -175,25 +185,25 @@ public void setGroups(Groups groups) {
175
185
}
176
186
177
187
public static class Groups {
178
- private Boolean enabled = false ;
188
+ private boolean enabled ;
179
189
180
- public Boolean getEnabled () {
190
+ public boolean isEnabled () {
181
191
return enabled ;
182
192
}
183
193
184
- public void setEnabled (Boolean enabled ) {
194
+ public void setEnabled (boolean enabled ) {
185
195
this .enabled = enabled ;
186
196
}
187
197
}
188
198
189
199
public static class Cache {
190
- private Boolean disabled = false ;
200
+ private boolean disabled ;
191
201
192
- public Boolean getDisabled () {
202
+ public boolean isDisabled () {
193
203
return disabled ;
194
204
}
195
205
196
- public void setDisabled (Boolean disabled ) {
206
+ public void setDisabled (boolean disabled ) {
197
207
this .disabled = disabled ;
198
208
}
199
209
}
0 commit comments