#spring [#spring-boot]{}
Property files, how do they work in Spring?
If a bean class is annotated with @PropertySource
, when Spring is conjuring this bean
Spring will also loads property file it defines.
#spring [#spring-boot]{}
Property files, how do they work in Spring?
If a bean class is annotated with @PropertySource
, when Spring is conjuring this bean
Spring will also loads property file it defines.
Tags: #spring #spring-boot
What's the difference between a class that is annotated using @SpringBootApplication and a class that implements ApplicationRunner or CommandLineRunner?
Which one do I need?
I always find my self in need to get back to React's official documentation on Controlled vs Uncontrolled component. But the official docs is written with older, class-based component, in mind while React community have move on to the more recent functional component.
I keep this example here to refer to get back to in the future. So, here it is, Controlled vs Uncontrolled Functional Component example:
import "./styles.css";
import { useState, useRef } from "react";
Java will be reaching it's next LTS version soon (Nov 2021), that is Java 17. After the first (Java 8, Mar '14) and second (Java 11, Sept '18) LTS, it is worth to pay attention what the next LTS release will bring as it will be considered the standard for years to come. So I sit for couple of hours (literally) to browse through past releases just to keep my self abreast of what has been going up until today.
Here's my notes.
There are three main APIs .NET app can use to interact with LDAP service. These three APIs lives under the System.DirectoryServices
namespace or S.DS
for short. The purpose of this note is to orient my self when searching for AD or LDAP related problems in .NET (and .NET core).
Examples below are in Powershell for rapid testing. Transalting to C# or other CLR language shouldn't be an issue.
This suite of API provide low level access to the LDAP protocol. You would have to have knowledge of how the server is configured and the details of LDAP protocol.
Here's an example of LDAP Bind operation.
Font icons usually packaged as webfonts and can easily be integrated to web app projects.
I found my self having to work with powershell (pwsh) quite often. To make things better, I decided to customize my pwsh prompt to be able to:
So you need to Invoke a HTTP API that returns JSON but you dont want to leave the comfort of your console. And you want the JSON response to be well formatted and color-highlighted.
You'll need:
You can just apt install all of them
Here's an example: