When use annotation @Parameters, I get 2 error messages "The annotation @Parameter is disallowed for this location&
Date : March 29 2020, 07:55 AM
|
@Valid annotation - This annotation disallowed for this location
Date : March 29 2020, 07:55 AM
hope this fix your issue Take a look at your imports. I guess you are not importing javax.validation.Valid when you just use @Valid.
|
The annotation "@Added" is disallowed for this location, when using custom annotation with events in CDI
Date : March 29 2020, 07:55 AM
This might help you What's the definition of your qualifier annotations @Added and @Removed? You're probably missing the PARAMETER entry in the @Target list: @Target({ TYPE, METHOD, PARAMETER, FIELD })
|
The annotation @Qualifier is disallowed for this location
Date : March 29 2020, 07:55 AM
wish of those help I believe you'll have more luck using it on the parameter of your method, like so: @Override
@Autowired
public void setCriteriaBuilder(
@Qualifier("hibernateCriteriaBuilder") IQueryCriteriaBuilder<Entity> criteriabuilder)
{
super.setCriteriaBuilder(criteriaBuilder):
}
|
"the annotation @Autowired is disallowed for this location" error on Eclipse
Date : March 29 2020, 07:55 AM
should help you out @Autowired can't be used for local variable, you should add it outside method scope, as field for example: @Autowired
StorageService storageService;
@PostMapping("/upload")
public String onUpload(@RequestParam("file") MultipartFile file, CVtestForm cvForm, RedirectAttributes redirectAttributes) throws IOException {
|