Descripción
Create a Spring @Configuration class with example beans
File Template: ❌
Prefix
spring:config
Scopes
java
Snippet de código
package ${1:com.example.demo.config};
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ${2:AppConfig} {
// Example bean
@Bean
public ${3:MyService} ${4:myService}() {
return new ${3:MyService}();
}
// TODO: Add more beans as needed
}