DEV Community

Cover image for Spring boot REST- API - configurations (Part 1)
Deotyma
Deotyma

Posted on • Edited on

Spring boot REST- API - configurations (Part 1)

Hello. I've just started a new work-study formation and I learn Java and Spring.
I will use Spring 2.4.7 with Java 11 and Eclipse for this tutorial and I work on MacBook with macOS Monterey version 12.

1). Creating a new workspace:

I open my Eclipse editor and I create a new workspace:

creation of new workspace

After tapping on switch workspace I browse where I want to create my new workspace:

browse a new espace

and I create a new folder where I will create a new workspace:

new space

new workspace browsed

Now I restart Eclipse:

new workspace created

2)Eclipse configuration for this workspace:

I open preferences on Eclipse (if you have Windows the preferences ai in the window tab)

preferences 1

preferences 2

I will use Java 11 this time so I configure my JRE:

JRE

To continue I apply this change and I adapt its environment:

JRE

In input I write foramtter - this is a plugin that helps to format a code, after I chose Code style formatter and Java Conventions and I edit it:

preferences formatter

I change the ligne wrapping from 120 to 60:

ligne wrapping

and I change a Java Conventions [built-in] to Java Conventions custom

Java Conventions custom

and I press OK.

Next, I write save in input: to format save actions: and I check this and I press Configure...:

save options

And I change the use of parentheses in expressions:

parentheses
and I press OK.

After that I change the configuration of Javadoc and uncheck it:
javadoc

And the last change is the spelling which can pollute the work if is always active so I uncheck it also:

spelling uncheck

I apply all these changes and now I can start a new spring project.

See you in the next part.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay