Skip to content

Tag: java

Method call error manufacturingcontroller

I don’t understand what the mistake is. Task: You are given two methods, requestProduct and getNumberOfProducts: getNumberOfProducts should return the total number of requested products; requestProduct should keep track of requested products, and format the product argument in the format: No. Requested …

Using ant patterns to match on path variable

I have several different controllers, configured with endpoints like below. Where {id} is a numeric @PathVariable. Using HttpSecurity, I want to implement security around all endpoints that have {id} in them. So I created an ant pattern like this: The ant pattern is correctly matching on the endpoints with {i…

Flink: java.lang.NoSuchMethodError: AvroSchemaConverter

I am trying to connect to Kafka. When I run a simple JAR file, I get the following error: Yes, I am aware that NoSuchMethod can potentially mean that there is a conflict between versions; however, there is no Flink instance running on YARN cluster. I have also tried to play with pom.xml but no luck The versio…