UserController.java || Spring Boot UserController class for Spring boot Security code in description
Автор: VIRAJ TECH (VICKY KUMAR SINGH)
Загружено: 2025-05-24
Просмотров: 2491
Описание:
UserController.java || Spring Boot UserController class for Spring boot Security code in description
Welcome to my Viraj Tech YouTube channel new to the channel please subscribe to the channel... & turn on the bell icon by clicking and making it to 'all' to get more interesting and technical videos.
If you like the video or video provide you any help or support, hit the like button. For any query comment below in the comment section I will try to help you and also try to sort out all your problems as soon as possible.
Thanks for Watching...
package com.virajtech.todo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import com.virajtech.todo.model.User;
import com.virajtech.todo.service.UserService;
@Controller
public class UserController {
@Autowired
private UserService userService;
@GetMapping("/login")
public String login() {
return "login";
}
@GetMapping("/logout")
public String logout() {
return "logout";
}
@GetMapping("/success")
public String success() {
return "success";
}
@GetMapping("/register")
public String showRegistrationForm(Model model) {
model.addAttribute("user", new User());
return "register";
}
@PostMapping("/register")
public String registerUser(@ModelAttribute User user) {
userService.saveUser(user);
return "redirect:/login";
}
}
----------------------------------------------------------------------------------------------------------------------------------------
INSTAGRAM :- / virajtechs
FACEBOOK :- / virajtechs
TWITTER :- / virajtechs
TELEGRAM :- https://t.me/virajtech
GITHUB :- https://github.com/virajvicky
----------------------------------------------------------------------------------------------------------------------------------------
Subscribe to my main channel
/ virajtechs
also Subscribe to my second channel
/ @virajtech3m5
APK LINK:-
Salesforce Trailhead playlist
• SalesForce Trailhead
Spring Boot playlist
• SPRING BOOT
Github playlist
• GitHub
Music Credit:-
Music Link:-
Disclaimer :
This channel doesn't Promote or Encourage any illegal activity & All contents provided by this Channel are Meant for Educational Purpose only.
Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use
usercontroller class file for spring boot security,
spring boot security project example,
spring boot security thymeleaf,
spring security example in spring boot,
spring boot read file from resource folder,
spring boot security authentication and authorization,
spring boot security example,
spring security authentication manager,
spring security in spring boot thymeleaf,
spring security with thymeleaf
viraj tech
#springboot
#spring
#springboottutorial
#javaspringboot
#learnspringboot
#springbootjava
#thymeleaf
#springmvc
#springdatajpa
#springcore
#springmaven
#maven
#mvc
#bootstrap
#tailhead
#css
#html
#java
#corejava
#advancejava
#reactjs
#react
#mysql
#database
#frontend
#backend
#fullstack
#crud
#crudoperation
#axios
#reactrouterdom
#reactrouter
#reactvite
#vitereact
#vite
#javascript
#js
#reactjavascript
#javascriptreact
#viraj_tech
#CodingTutorial
#WebDevelopment
#Programming
#LearnToCode
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: