Snippets tagged “properties”
9 snippets use this tag.
- How do I find out my MySQL URL, host, port and username?Java
To find out your MySQL connection details, you will need to look in your MySQL configuration files. The specific location of these files will depend on how you installed MySQL, but common locations include /etc/my.cnf,
- How to Count the Number if Keys/Properties of a JavaScript objectJavaScript
It is frequently necessary to count the number of keys/properties of an object in JavaScript. Find several solutions to that issue in this short tutorial.
- Reading Properties file in JavaJava
To read a properties file in Java, you can use the Properties class from the java.util package.
- Reference — What does this symbol mean in PHP?PHP
In PHP, $this is a special variable that refers to the current object.
- Setting active profile and config location from command line in spring bootJava
To set the active profile and the configuration location from the command line in Spring Boot, you can use the spring.profiles.active and spring.config.name properties.
- Spring Boot and multiple external configuration filesJava
To use multiple external configuration files with Spring Boot, you can use the spring.config.name property to specify the names of the configuration files.
- Using env variable in Spring Boot's application.propertiesJava
You can use environment variables in your application.properties file by using the spring.profiles.active property.
- Why is my Spring @Autowired field null?Java
There are several reasons why an @Autowired field in a Spring bean might be null:
- Why use getters and setters/accessors?Java
Getters and setters, also known as accessors, are methods that are used to get and set the values of an object's properties.