In this post under Spring Core, I will show with example how to configure access to multiple custom property files. In the previous post, I showed with example how to configure access to single custom property file. In real world scenario they wouldn’t be a situation where we need access to only one custom property…… Continue reading Configuring access to multiple custom property files
Month: July 2024
Configuring access to custom property file
In this post under Spring Core, I will show with example how to configure access to custom property file. In the last blog I showed with example how to access system and environment properties. But those are not the only properties that we need access to. We developers also need access to properties created by…… Continue reading Configuring access to custom property file
Checking whether the password have whitespaces or not
In this post under Passay, I will explain with example the purpose of “WhitespaceRule”. Sometimes user chooses a password that will have whitespaces. If you want to restrict user from creating a password that does have whitespaces, you can use “WhitespaceRule” class. “WhitespaceRule” class makes sure that the password set by the user doesn’t have…… Continue reading Checking whether the password have whitespaces or not
Removing an attribute of an ldap entry
In this post under Java LDAP, I will show with example two approaches to remove a existing attribute from an existing ldap entry. For our example I will remove an attribute by name “telephoneNumber” from an ldap entry identified by dn. Below is the complete main class for your reference Main class 1 package package7;…… Continue reading Removing an attribute of an ldap entry
Accessing system and environment properties
In this post under Spring Core, I will explain with example how to access system and environment properties. To read system and environment properties we take help of Spring’s “Environment” interface. The approaches to access system and environment properties are different but the “Environment” interface hides that implementation detail and provides a single interface through…… Continue reading Accessing system and environment properties
Checking whether yaml parser feature is enabled or not
In this post under Jackson YAML, I will show with example how to check whether a yaml parser feature is enabled or not. In previous post under Jackson YAML, I explained the purpose of yaml parser feature “YAMLParser.Feature.PARSE_BOOLEAN_LIKE_WORDS_AS_STRINGS”. For our example I will check whether the above parser feature is enabled or not. Below is…… Continue reading Checking whether yaml parser feature is enabled or not
Yaml parser feature PARSE_BOOLEAN_LIKE_WORDS_AS_STRINGS
In this post under Jackson Yaml, I will explain the purpose of parser feature “PARSE_BOOLEAN_LIKE_WORDS_AS_STRINGS” and how to enable or disable it. We all know that YAML parser, when parsing a file, if it encounters word “true” or “false” it treats them as boolean. In addition to that, synonyms of “true” and “false” like “yes”…… Continue reading Yaml parser feature PARSE_BOOLEAN_LIKE_WORDS_AS_STRINGS