Task - Spring Boot - Spring Security - Nuclear Fallout #76
akash-coded
started this conversation in
Tasks
Replies: 1 comment
NuclearResource .java@Controller
public class NuclearResource {
@RequestMapping("/lauch/missiles")
public @ResponseBody String launchMissiles() {
return "Missile Launched";
}
}application.propertiesspring.security.user.name=president
spring.security.user.password=armageddon |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Create a Spring Boot application named
nuclear-missiles-app.Create a resource named
NuclearResourcethat has a handler methodlaunchMissiles()mapped to the route/lauch/missiles.Using Spring Security, configure the application such that only the user with the name "president" and password "armageddon" has access to the application.
Run the application and try it out.
To be submitted:
All reactions