background preloader


Facebook Twitter

What are good interview questions on Spring Boot? - Quora. Spring Data, MongoDB, and Spring Boot - DZone Database. Join the DZone community and get the full member experience.

Spring Data, MongoDB, and Spring Boot - DZone Database

Join For Free Build fast, scale big with MongoDB Atlas, a hosted service for the leading NoSQL database. Try it now! Brought to you in partnership with MongoDB. It’s so simple, I almost don’t believe it. GitHub - severedsea/spring-boot-security-rest-boilerplate: Spring Boot + Spring Security + REST Boilerplate. Getting Started With JHipster, Part 3. Welcome back to this JHipster tutorial series!

Getting Started With JHipster, Part 3

In part one we covered creating a monolithic application. In part two, we walked through creating a microservice application (which was a bit more complicated). For those of you out there working to get things going with JHipster, there are some setup things and “gotchas” that I’d like to highlight. So this little blog is more of a helper for those of you who have decided to try JHipster out and play around with it. That’s what we’ll be discussing in this blog post with the hope that I can help you minimize the getting-up-to-speed curve. MySQL as a database. Microservices in Spring Boot: a Screencast. Join the DZone community and get the full member experience.

Microservices in Spring Boot: a Screencast

Join For Free At Stormpath we spent 18 months researching best practices for designing an API. Join Les Hazlewood, Stormpath CTO and Apache Shiro Chair, as he explains how to design a secure REST API, the right way. In software development, the term microservices refers to many independent services communicating with each other over an API. In a microservice architecture, these services must exchange information in order to perform complex tasks, and each communication is a point of vulnerability and potential latency. Springboot-angular2-tutorial. Spring Boot – what it is and how to get started. Getting Started Deploying Spring Apps. Spring Boot 1.4: Gherkin tests. In this post I show how you can implement Gherkin tests for Spring Boot 1.4.1.

Spring Boot 1.4: Gherkin tests

Here is an example of a Gherkin based test script: The Feature, Scenario, Scenario Outline, Given, When, Then and And constructs are part of the Gherkin test language [1]. Such tests are popular in Behavior-driven development (BDD) and is meant as a common tool between users from the business and users from the development team [2]. The idea is that you can execute such a Gherkin script and get a test result (did it work or not?) Notice the Gherkin language, there is nothing that prevents you from writing such tests even before the real business code exists. Imagine if you and the business wrote Gherkin tests as part of a User Story’s acceptance criteria… I haven’t done this yet. About the Spring Boot 1.4 example I have prepared a Spring Boot 1.4.1 based example on GitHub.

I have used a 5 step recipe for making this work…. Step 1 of 5: Configure the build script The example uses Gradle as it’s build technology. REST Security with JWT, Spring Security and Java. Security Security is the enemy of convenience, and vice versa.

REST Security with JWT, Spring Security and Java

This statement is true for any system, virtual or real, from the physical house entrance to web banking platforms. Engineers are constantly trying to find the right balance for the given use case, leaning to one side or the other. Usually, when a new threat appears, we move towards security and away from convenience. Then, we see if we can recover some lost convenience without reducing the security too much. Security is the enemy of convenience, and vice versa. Let’s try to see where REST services currently stand regarding security and convenience. Although REST services do not have much specified, an important one is the lack of state. In trying to get rid of client sessions from the server, some other methods have been used occasionally, such as Basic or Digest HTTP authentication.

Finally, some implementations used arbitrary tokens to authenticate clients. Why Spring is Winning the Microservices Game. This is the second blogpost in the series “Exploring the virtues of microservices”, with each one checking out different frameworks that established themselves in the Java industry as goto choices for establishing a microservices environment.

Why Spring is Winning the Microservices Game

The main goal of the series is to investigate what makes certain libraries so good at enabling microservices architecture. Last time we looked at how Play framework and the Akka library help you build forests of microservices and looked how they encourage you to ensure isolation, autonomy, and managing the state of the components at the code level. This time we focus on the Spring framework. For a long time, the Spring framework was the de-facto framework choice for web applications. It was created in response to heavy Java application servers of the past, and introduced a much more lightweight approach to creating web applications. Nowadays, Spring has established its own ecosystem. 5 Practical Tips for Building Your Spring Boot API. Building Identity Management, including authentication and authorization?

5 Practical Tips for Building Your Spring Boot API

Try Stormpath! Our REST API and robust Java SDK support can eliminate your security risk and can be implemented in minutes. Sign up, and never build auth again! Every API developer is looking for ways to manage their application more securely, without sacrificing speed or ease of implementing new features. To that end, we recently updated the core Stormpath product – our REST API – to Spring Boot. Getting Started Deploying Spring Apps. JSON Web Token Authentication Tutorial: Example using Spring Boot. Table of contents: Introduction.

JSON Web Token Authentication Tutorial: Example using Spring Boot

How to Generate Spring Boot Applications Using Spring Roo. Architecting The Cloud Native Platform - Singapore Spring User Group. Custom test slice with Spring Boot 1.4. Spring Boot 1.4 includes a major overhaul of testing support and one of these features is test slicing.

Custom test slice with Spring Boot 1.4

I’d like to take the opportunity in this blog post to further explain what it is and how you can easily create your own slices. Test slicing is about segmenting the ApplicationContext that is created for your test. Typically, if you want to test a controller using MockMvc, surely you don’t want to bother with the data layer. Instead you’d probably want to mock the service that your controller uses and validate that all the web-related interaction works as expected. This can be summarized in the example below: Testing Spring Boot Applications - Phil Webb @ Spring I/O 2016. Tutorial · Spring Security and Angular JS. In this section we continue our discussion of how to use Spring Security with Angular JS in a "single page application".

Tutorial · Spring Security and Angular JS

Here we show how to modularize the client-side code, and how to use "nice" URL paths without the fragment notation (e.g. "/#/login") which Angular uses by default, but most users dislike. This is the seventh section of a tutorial, and you can catch up on the basic building blocks of the application or build it from scratch by reading the first section, or you can just go straight to the source code in Github. Angular 2 Boot.