- Spring Data Projection
Spring Data query methods usually return one or multiple instances of the aggregate root managed by the repository. However, it might sometimes be desirable to create projections based on certain attributes of those types. Spring Data allows modeling dedicated return types, to more selectively…
- Elasticsearch Snapshot
Snapshort or Backup Snapshot is a backup taken from a running Elasticsearch cluster. We can take a snapshot of individual indices or of the entire cluster. Snapshots are incremental, which means each snapshot of an index only stores data that is not part of an earlier snapshot. I have found this…
- React Update State
How to update state of an object We have a user object setUser({ …user, name: “Peter” }); How to update state of list/array of objects We have a shopping cart which contains a list of menu items const [shopCart, setShopCart] = useState([{ name: “”, price: 0, uuid: “” }]); add item to shopping cart…
- HTML Doctypes
A DOCTYPE is an instruction to the web browser about the version of HTML in which the web page is written. A DOCTYPE declaration appears at the top of a web page before all other elements. According to the HTML specification or standards, every HTML document requires a valid document type…
- Spring Boot – OAuth2
Create auth server and resource server Create auth client that consumes resource from a third party like Google or Github