minioConfig': Injection of autowired dependencies failed - spring-boot

i adding every possible dependency but i am still getting the dependency errror
I WANT TO CREATE A SPRINGBOOT API THAT UPLOADS A FILE IN MINIO SERVER, I AM NOT GETTING APPRORPRIATE DIRECTION

Related

Can spring hibernate project be attached as jar in another maven project

I have a spring-hibernate-springboot project deploying as WAR. I need to use it as jar in another JAVA project. I have seperated its controller part and now made changes in maven to deploy it as jar. I am able to attached it to another project and can call service method. But I have autowired Dao into that service file; when any method of dao is called null pointer exception is thrown. It means Dao is not getting autowired.
Any help will be appriciated.

Unable to create a spring starter project in STS

I am trying to create a spring starter project in STS. I am selecting the gradle distribution and the Spring web dependency. When I click on finish I am getting the following error message. Error message
Don't forget to configure your proxy in your IDE.
Please look at this tutorial
Looks like a connection issue from your end caused due probably due to unstable network. In any case you can always add dependencies and download the project from https://start.spring.io

In Spring Boot 2.1.3 not able to exclude Couchbase Auto Configuration

I have a java project configured with gradle 5 with spring boot 2.1.3. I am trying to create a simple rest application to use Mongo-db repository and JPA with MySQL with a simple service.
I am not intended to use couch-base. although Couch base/reactive Auto configuration is loading and creating an issue, I am not able exclude Couch auto configuration and getting below exception -
java.io.FileNotFoundException: class path resource [org/springframework/data/couchbase/config/AbstractReactiveCouchbaseDataConfiguration.class] cannot be opened because it does not exist.
I tried to exclude all Couchbase Autoconfiguration without any success
"#SpringBootApplication(exclude = {
SpringBootCouchbaseConfigurer.class,
CouchbaseRepositoriesAutoConfiguration.class,
CouchbaseDataProperties.class,
CouchbaseReactiveRepositoriesAutoConfiguration.class,
CouchbaseReactiveDataAutoConfiguration.class,
CouchbaseDataAutoConfiguration.class,
CouchbaseAutoConfiguration.class,
CouchbaseConfiguration.class
})"
If I could add spring-data-couchbase dependency it works. but I don't want to include Couch-base unnecessarily with application.
I am looking for a help/workaround to exclude the Couch-base auto configuration.

Spring Data DynamoDb Integration with Spring Boot(java.lang.AbstractMethodError: createPersistentProperty)

We were working on the Integration of the Dynamo Db with our Spring Boot Project (maven based project) so as to deploy it as a lambda project which can access data over dynamo db and render it to our static website .After configuring the repos and the POJOS for our project we did mvn clean install and found the following issue that occurred during the build .
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'MyInteractivesFunction': Unsatisfied dependency expressed through field 'MyClientDetailsRepository';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'MyClientDetailsRepository': Invocation of init method failed;
nested exception is java.lang.AbstractMethodError: org.springframework.data.mapping.context.AbstractMappingContext.createPersistentProperty(Lorg/springframework/data/mapping/model/Property;Lorg/springframework/data/mapping/model/MutablePersistentEntity;Lorg/springframework/data/mapping/model/SimpleTypeHolder;)Lorg/springframework/data/mapping/PersistentProperty;
It seems that the issue was in mapping the POJO properties with the columns but we created another dummy project separately and it worked there. Need a solution for it.
After lots of searching and applying various ways we found what actually was the real cause of problem was jars incompatibility. Our Spring boot version was based on 2.0.3 and the spring data dynamodb version was 4.5.0 which dont work well with each other.Hence , we found a link that very sweetly describes the issue :
https://derjust.github.io/spring-data-dynamodb/ , So we changed the spring data dynamodb version to 5.0.4 and it worked like a charm we were able to retrieve results from Dynamo Db.

spring-boot No qualifying bean of type 'org.springframework.test.web.servlet.MockMvc' available

Dears,
I am new to spring boot, I downloaded the getting started project from "https://spring.io/guides/gs/spring-boot/"
but when I tried to run it as it's I got the following exception
No qualifying bean of type 'org.springframework.test.web.servlet.MockMvc' available
please advise
Dears,
it seems there were some problem in my local maven repository
I cleaned my local maven spring repository and let the build to download it again and everything went fine

Resources