• Private Policy
  • Contact
Follow me
  • English
  • Tiếng Việt
Huong Dan Java
  • Java
    • Java Core
    • Java Lambda Expression
    • Java Fundamentals
    • Java Stream
    • Java Tools
    • Java XML
  • Jakarta EE
    • CDI
    • JSON Binding
    • JSON Processing
    • MVC
    • Persistence
    • RESTful Web Services
    • Servlet
  • Frameworks
    • Apache Camel
    • Apache Struts
    • Javalin
    • gRPC
    • Hibernate
    • Micronaut
    • MicroProfile
    • Mule Enterprise Service Bus
    • OpenId Connect
    • Quarkus
    • Spring
      • Spring AI
      • Spring Authorization Server
      • Spring Boot
      • Spring Cloud Gateway
      • Spring Cloud GCP
      • Spring Cloud Netflix
      • Spring Data JPA
      • Spring Data MongoDB
      • Spring Data R2DBC
      • Spring for Apache Kafka
      • Spring GraphQL
      • Spring Framework
      • Spring Integration
      • Spring MVC
      • Spring Security
      • Spring Session
      • Spring WebFlux
      • Spring WebSocket
    • Spark
    • Vaadin
  • Libraries
    • Apache
      • Apache Commons IO
      • Apache FreeMarker
      • Apache HTTP Components
      • Apache Ignite
      • Apache Tiles
    • AspectJ
    • Database Migration
    • EhCache
    • GraphQL
    • Jackson
    • JSch
    • Log4J
    • Project Lombok
    • Project Reactor
    • Quartz Scheduler
    • Thymeleaf
    • Resilience4j
    • RxJava
  • Testing
    • Mockito
    • PowerMock
    • Selenium
    • Testcontainers
  • Open Source
    • Apache ActiveMQ
    • Apache APISIX
    • Apache Kafka
    • Consul
    • Debezium
    • Distributed Application Runtime
    • Grafana
    • Keycloak
    • Prometheus
    • RabbitMQ
    • Redis
    • SonarQube
  • DevOps
    • Cloud Foundry
    • Cloud Provider
      • Google Cloud Platform
    • Docker
    • Helm
    • Kubernetes
    • Jenkins
    • Nexus Repository Manager
    • OpenShift
  • Tool
    • Apache Ant
    • Apache Maven
    • CVS
    • Eclipse
    • FTP
    • IntelliJ
    • Git
    • Nginx
    • OpenAPI
    • RAML
  • Database
    • Cassandra
    • MongoDB
    • MySQL
    • PostgreSQL
  • Server Runtime
    • Apache Tomcat
    • JBoss WildFly
  • Others
    • JavaScript
    • Huong Dan Java Logger
    • Algorithm
    • mvnForum
    • Questions Management
      • Questions Management – Stage 1
      • Questions Management – Stage 2
  • Books

Spring MVC

Initialize and configure DispatcherServlet in Spring MVC

Initialize and configure DispatcherServlet in Spring MVC

7 years ago by Khanh NguyenSpring MVC

Like other servlets, in order for the DispatcherServlet to receive and process requests, we need to configure the web server container to initialize and map the URL to it. In this tutorial, I will show you how to initialize and configure the DispatcherServlet in Spring… Read More

Redirect after request processing in Spring MVC controller

Redirect after request processing in Spring MVC controller

7 years ago by Khanh NguyenSpring MVC

Spring MVC supports us to redirect to another request after processing the current request. In this tutorial, we will learn how to do what I just said. As you know, after processing the request, the controller typically selects a view to display the returned data… Read More

Put data into the model in Spring MVC controller

Put data into the model in Spring MVC controller

7 years ago by Khanh NguyenSpring MVC

In the MVC model, the controller will inject data into the model and these data will be used on the view. In this tutorial, we will learn how to put data into the model in your Spring MVC controller. Spring MVC demonstrates very clearly the… Read More

Access HttpServletRequest and HttpServletResponse in Spring MVC controller

Access HttpServletRequest and HttpServletResponse in Spring MVC controller

7 years ago by Khanh NguyenSpring MVC

In some cases, you will need to access the HttpServletRequest and HttpServletResponse objects in the Spring MVC controller when processing a request URL. At that point, you need to simply add two variables referencing these two objects as parameters of the method. In the example… Read More

Define request URL for a controller in Spring MVC

Define request URL for a controller in Spring MVC

7 years ago by Khanh NguyenSpring MVC

Request URL is a URL that the user will use to access our web application. In this tutorial, we will learn how to define a request URL for a controller in Spring MVC. Define the request URL A controller can handle one or more requests… Read More

Define controller in Spring MVC

Define controller in Spring MVC

7 years ago by Khanh NguyenSpring MVC

In the previous tutorial, you learned about the components of a controller in Spring MVC, in this tutorial, we will learn together how to define a controller in Spring MVC. Continue with the project which I created in the previous tutorial, as you can see,… Read More

Binding variables in URI request to method’s parameters using @PathVariable annotation in Spring MVC

Binding variables in URI request to method’s parameters using @PathVariable annotation in Spring MVC

7 years ago by Khanh NguyenSpring MVC

Usually, when we want to request specific information from a RESTful Web Service, we usually use requests like “/student/2” or “/product/5”, where 2 and 5 are the values that can be changed depending on demand. To construct such requests in Spring MVC, we need to… Read More

Using JPA in Spring MVC

Using JPA in Spring MVC

8 years ago by Khanh NguyenSpring MVC

I have shown you how to use JPA in the Spring framework in the previous tutorial. In this tutorial, I will continue to guide you all using JPA in Spring MVC. First, I will also create a Maven project as an example: If someone does… Read More

InternalResourceViewResolver in Spring MVC

InternalResourceViewResolver in Spring MVC

8 years ago by Khanh NguyenSpring MVC

In the Spring MVC as I mentioned in this tutorial, the last step of processing the request, DispatcherServlet selects the View Template and passes the Model data so that the View Template can handle rendering the interface and return it to the DispatcherServlet. The View… Read More

Overview about request processing in Spring MVC

Overview about request processing in Spring MVC

8 years ago by Khanh NguyenSpring MVC

In the tutorial about the MVC Model, you guys know that for the web environment, we need a Front Controller to receive the request and return a response. DispatcherServlet is a Front Controller like that in Spring MVC. In this tutorial, we will look at… Read More

  • Previous
  • 1
  • 2
  • 3
  • Next

Spring Authorization Server Ebook

Search Google


Announcement

  • Contact Form error should be fixed(20 July, 2021)

Most Viewed

  • Install Node.js on macOS (459,428)
  • Contact (75,416)
  • Push a local GIT repository into a remote GIT repository (65,202)
  • Ignore case sensitive for table name in JPA with Hibernate implementation (38,729)
  • Get base URL in Controller in Spring MVC and Spring Boot (37,940)
  • Access HttpServletRequest and HttpServletResponse in Spring MVC controller (36,678)
  • Implement OAuth Authorization Server using Spring Authorization Server (35,809)
  • Some ways to initialize Optional object in Java (29,907)
  • mvnForum 0.0.4 released (29,575)
  • Get access token using refresh token with Keycloak (29,175)

Recent Comments

  • dianlong on Implement OAuth Authorization Server using Spring Authorization Server
  • Khoan đẹp trai on Apache Maven
  • Raj on Generate JSON data using Java class annotated with JAXB annotation, using Jackson library
  • khoannh on Git
  • Maxi on Configure Web Origin in Keycloak

Links

  • Huong Dan Kotlin

Twitter

Follow @KhanhNguyenJ
  • Private Policy
  • Contact
Theme: GoMedia by ThemeJunkie. Back To Top