Image for post
Image for post
Photo by nousnou iwasaki on Unsplash

Spring-boot version <2.2.x

If you are using spring-boot version <2.2.x then use the following Maven dependency in your pom.xml file

<properties>
<
spring-boot.version>2.1.7.RELEASE</spring-boot.version>
</
properties>
<dependencyManagement>
<
dependencies>
<
dependency>
<
groupId>org.springframework.boot</groupId>
<
artifactId>spring-boot-dependencies</artifactId>
<
version>${spring-boot.version}</version>
<
type>pom</type>
<
scope>import</scope>
</
dependency>
</
dependencies>
</
dependencyManagement>
<dependencies>
<
dependency>
<
groupId>org.springframework.boot</groupId>
<
artifactId>spring-boot-starter-test</artifactId>
<
scope>test</scope>
<
exclusions>
<
exclusion>
<
groupId>junit</groupId>
<
artifactId>junit</artifactId>
</
exclusion>
</
exclusions>
</
dependency>
<
dependency>
<
groupId>org.junit.jupiter</groupId>
<
artifactId>junit-jupiter-engine</artifactId>
<
scope>test</scope>
</
dependency>
<
dependency>
<
groupId>org.junit.vintage</groupId> …

Go to ‘Tools’ menu in Intellij IDEA and click on ‘Create Command-line Launcher…’

Image for post
Image for post

Choose a command to add to /user/local/bin. Here I choose idea as command. If you have different versions of Intellij IDEA then it is better to give some suffix to indicate version.

Image for post
Image for post

I usually use idea for Ultimate edition and ideacfor Community edition.

Now, suppose your project for e.g. `MyProject` is in ~/git. Then you can open the project in Intellij IDEA by using the command idea MyProject.

If you are inside the project directory then you can open the project using command idea .


It is possible to use @GetMapping, @PostMapping etc. with methods in Feign client (interface) instead of @RequestMapping and @RequestLine. For this DON’T include the following config in @Configuration file.

  @Bean
public Contract feignContract() {
return new Contract.Default();
}

Shaun Thomas

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store