mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-08 21:38:21 +00:00
Documentation
This commit is contained in:
parent
e1a561938f
commit
e10396eeb2
@ -125,6 +125,11 @@ dbadmin.modelsPackage=your.models.package,your.second.models.package
|
||||
<p>This will autoconfigure the various Spring Boot Database Admin components when your application starts.</p>
|
||||
<p>If everything is setup correctly, you will see Spring Boot Database Admin confirming it in the log messages that appear when you start your application. Keep in mind that if you specify the wrong models package, it will still work but provide you an empty interface. Visit <a target="_blank" href="http://localhost:8080/admin">http://localhost:8080/admin</a> (replace the correct port and base path with your settings) to check if everything is working correctly.</p>
|
||||
|
||||
<h4 id="known-issues">2.2.1 Known issues</h4>
|
||||
<ul>
|
||||
<li><strong>Transactional</strong>: If you're using <code>@Transactional</code> methods, you need to annotate your transaction manager with the <code>@Primary</code> annotation, as you may otherwise get a <code>NoUniqueBeanDefinitionException</code> (read <a href="https://github.com/aileftech/spring-boot-database-admin/issues/16" target="_blank">here</a> for more info).
|
||||
</ul>
|
||||
|
||||
<h3 id="supported-features">2.3 Supported features</h3>
|
||||
</p>
|
||||
<h4 id="supported-annotations">2.3.1 Supported JPA annotations</h4>
|
||||
@ -148,7 +153,7 @@ dbadmin.modelsPackage=your.models.package,your.second.models.package
|
||||
<li>Double, Float, Integer, Short, Byte, Character, BigDecimal, BigInteger</li>
|
||||
<li>Boolean</li>
|
||||
<li>String, UUID</li>
|
||||
<li>Date, LocalDate, LocalDateTime, OffsetDateTime</li>
|
||||
<li>Date, LocalDate, LocalDateTime, OffsetDateTime, Instant</li>
|
||||
<li>byte[]</li>
|
||||
</ul>
|
||||
|
||||
@ -319,6 +324,19 @@ public class User { ... }</code>
|
||||
<p>Disables the export functionality for this table.</p>
|
||||
|
||||
|
||||
<h4 id="disable">3.1.10 @Disable</h4>
|
||||
<h6>Code example</h6>
|
||||
<pre >
|
||||
<code class="language-java">@Entity
|
||||
@Disable
|
||||
public class Payment { ... }</code>
|
||||
</pre>
|
||||
|
||||
<p>Disables Spring Boot Database Admin on this table, by ignoring it during the initialization phase.</p>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="separator"></div>
|
||||
|
||||
<h3 id="settings-panel">3.2 The Settings panel</h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user