Avoid IntelliJ to automatically create @Qualifier annotations

When I do Alt + Insert in IntelliJ to use an Autwired Dependency dependent, IntelliJ automatically creates a field like this:

@Qualifier("beanName")
@Autowired
private Bean bean;

Does anyone know if it is possible to let IntelliJ stop writing @Qualifier annotation?

+4
source share
1 answer

Does anyone know if it is possible to let IntelliJ stop writing @Qualifier annotation?

Short answer: you cannot. The code generation action @Autowire Dependencydoes not use an editable file template.

: ... IDEA , bean. , bean UniqueBean, Spring, IDEA :

@Autowired
private UniqueBean uniqueBean;

Spring , Spring Facet, bean, IDEA , , @Qualifier.

+1

All Articles