Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7181455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:33:39+00:00 2026-05-28T17:33:39+00:00

I have a controller with request mapping as @RequestMapping(/**) What does it mean? If

  • 0

I have a controller with request mapping as @RequestMapping("/**")
What does it mean?

If I want to exclude certain url pattern from the above mapping how would I do that?

Could someone please shed some light on it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:33:40+00:00Added an answer on May 28, 2026 at 5:33 pm

    Your URL will intercept all requests matching ‘/**’. Depending on where you are defining this I am not sure why you would want to do this. On class level this should define the base path while on method level it should be refined to the specific function.

    If you would like to exclude a pattern you could define another controller that is ordered at a higher priority to the controller specifying ‘/**’

    Here are 2 good references from spring source:

    1. http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/bind/annotation/RequestMapping.html

    2. http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a spring controller with a request mapping as follows @RequestMapping(/downloadSelected) public void
We have a url-pattern of /* and requests get to our controller, but we
I have the following Spring Controller @Controller @RequestMapping(/accreq) with the following mapping @RequestMapping(value =
Imagine that I have a Spring MVC controller something like this: @Controller @RequestMapping(/base-url) public
I have a problem with my spring controller/request mapping struture. In web.xml I have
I have a controller (Spring-MVC) that generates a PDF report on a get request.
I have a Rails application that unfortunately after a request to a controller, has
I have controller with action new , and I want it to create ActiveRecord::Base
When submitting one form from view, how can i also read or have controller
I have a controller action which I would like to call another controller action.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.