This Spring Boot web application displays a random Chuck Norris Joke on the index.
This repository is for an example application built in my Spring Framework 5 - Beginner to Guru
You can learn about my Spring Framework 5 Online course here.
Jokes App for my Spring 5 Course
This Spring Boot web application displays a random Chuck Norris Joke on the index.
This repository is for an example application built in my Spring Framework 5 - Beginner to Guru
You can learn about my Spring Framework 5 Online course here.
@RestController
public class JokeController {
private JokeService jokeService;
@Autowired
public JokeController(JokeService jokeService) {
this.jokeService = jokeService;
}
@RequestMapping("/norris")
public String showJoke() {
// public Model showJoke(Model model) {
// model.addAttribute("joke", jokeService.getJoke());
// return model;
return jokeService.getJoke();
}
}
Checkout to custom-banner branch
Run :- mvn spring-boot:run
Go to localhost:8080
You'll get :-
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.Tue Apr 10 15:17:47 IST 2018
There was an unexpected error (type=Not Found, status=404).
No message available
Which is fixed if you change parent version to 1.4.2 (From 2.0.0) in pom.xml :-
org.springframework.boot
spring-boot-starter-parent
1.4.2.RELEASE
Can you help me out with this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.