spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

@Requestmapping("/") produces 404 with Spring MVC


Change the RequestMapping to below if you want it to hit only "/"

@RequestMapping(method =
RequestMethod.GET)

Give that a go and let me know how it works out for you.

Then if you want to add say index to the parameter add the value parameter:

@RequestMapping(value =
{"/","/index},method = RequestMethod.GET)

Categories : Spring

Related to : @Requestmapping("/") produces 404 with Spring MVC
Coding to an interface on a Spring Controller method with @RequestMapping
You shouldn't use Interface because Spring needs to instantiate that object, otherwise you will be requiring the property editors OR converters. Read the following post to know about How Spring MVC Binds Parameter? Read section "Binding Domain Object" in following link. http://www.jpalace.org/document/92/binding-and-validation-of-handler-parameters-in-spring-mvc-controllers

Categories : Spring
Wildfly JAX-RS questiona about Produces
It's not so much a problem with JAX-RS as it is with cURL. If I run the command with the -v switch (verbose), I'll see the request headers C: empjbossquickstarthelloworld-rs>curl -v http://localhost:8080/wildfly-helloworld-rs/rest/ -H 'accept:application/xml' * Adding handle: conn: 0x4b6208 * Adding handle: send: 0 * Adding handle: recv: 0 *

Categories : Java
MSHTML PasteHTML() produces  
This may be by design. Conform to HTML specifications, any whitespace in the HTML code should be treated as a single instance of whitespace (except inside <pre> tags). To provide extra word separation when you type two or more spaces in design mode, IE inserts &nbsp; HTML entities instead.

Categories : Delphi
Why the code produces this answer? [Python]
the probe variable is an integer type. the answer that you get from the user is a string. test it this with: print type(ans1) print type(prob1) so you need to convert the input from the user to an integer: if int(ans1) == prob1

Categories : Python
C++ template specialization in different dll produces linker errors
I know you said that you dont want to modify the header since it could break the third party library updates, but the header that the template is defined in is not set up correctly. Hopefully you can get your vendor to modify their headers to be more import/export friendly. The goal: Define (export) a template specialization in a dll/so and then use (import) that specialization to your exe. tes

Categories : C++
Recently Add
How do I make Grails execute shell commands just before creating war file?
Display data from related entities to avoid the lazy initialization exception with setting up @BatchSize
spring boot mvc: failed after following the sample
Apache Camel iterate over List
Can I move entire web.xml to spring code base configuration? (WebApplicationInitializer)
Autowired Object is coming out null for a web project
@Autowired on setter function does not look at the property name (like autowired in XML does)
Cannot inject beans in servlet context to Controller
Serving outside web-app static files using spring MVC
jsf: Calling a method in managedbean giving exception
How to have a SAML request/response signed using Spring Security SAML extension
Autowiring issues with a class in Spring data Mongo repository
Internal Exception: java.sql.SQLNonTransientConnectionException: Could not send query: Software caused connection abort: socket write error
How to save spring integration message header into database
serving files from a spring boot war file
Spring Data + QueryDSL empty predicate + Predicate chaining
thymeleaf spring standard dialect: using template
spring-tool: the package of 3.6.2 is not useful on linux
Disable SSLv3 using Spring-Boot and embedded Tomcat
The annotation @EnableSpringDataWebSupport does not work with WebMvcConfigurationSupport?
Gradle ivy service MetaDataParseException
mocking a method with parameter as LIST type
Can I use spring thymeleaf with layoutdialect?
Playframework2 like reverse routing in spring
How can i send a parameter in a spring webflow event?
Deploying spring boot to elasticbeanstalk and setting system properties
Jackson and unmarshalling Spring HATEOAS references
problems with Native AspectJ with Spring
Split the query results into more jsp pages
Jms connection is timing out in spring batch remote partitoning on the master side
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.