In Spring Boot, the _____ annotation can be used to inject the value of a specific property into a field.

  • @Autowired
  • @Inject
  • @Property
  • @Value
In Spring Boot, you can use the @Value annotation to inject the value of a specific property into a field. This annotation allows you to inject property values from your application.properties or application.yml file directly into your Spring components, making it convenient to access configuration properties within your application code.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *