mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-06-09 03:07:13 +00:00
show line numbers in conde snippets
This commit is contained in:
parent
cd1df0e376
commit
255a68d673
82 changed files with 1249 additions and 1251 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
## application.properties
|
||||
|
||||
```ini
|
||||
```ini linenums="1"
|
||||
spring.datasource.url=DB_url
|
||||
spring.datasource.username=user
|
||||
spring.datasource.password=password
|
||||
|
@ -24,7 +24,7 @@ server.port=server_port
|
|||
|
||||
Model of a table of the DB
|
||||
|
||||
```java
|
||||
```java linenums="1"
|
||||
package <base_package>.entities;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
|
@ -54,7 +54,7 @@ public class Entity {
|
|||
|
||||
Spring Interface for DB connection and CRUD operations.
|
||||
|
||||
```java
|
||||
```java linenums="1"
|
||||
package <base_package>.dal // or .repository
|
||||
|
||||
import org.springframework.data.repository.JpaRepository;
|
||||
|
@ -77,7 +77,7 @@ Interfaces and method to access the Data Access Layer (DAL).
|
|||
|
||||
In `IEntityService.java`:
|
||||
|
||||
```java
|
||||
```java linenums="1"
|
||||
package <base_package>.services;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -105,7 +105,7 @@ public interface IEntityService {
|
|||
|
||||
In `EntityService.java`:
|
||||
|
||||
```java
|
||||
```java linenums="1"
|
||||
package <base_package>.services;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -161,7 +161,7 @@ public class EntityService implements IEntityService {
|
|||
|
||||
REST API routes & endpoints to supply data as JSON.
|
||||
|
||||
```java
|
||||
```java linenums="1"
|
||||
package <base_package>.integration;
|
||||
|
||||
import java.util.List;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue