Change
@RequestMapping(value = "/test", method = RequestMethod.POST)
To
@RequestMapping(value = "/test", method = RequestMethod.GET)
Related Posts:
- Spring @PropertySources value not overriding
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘MyController’:
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- Spring boot – Request method ‘POST’ not supported. Tried everything
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- Difference between spring @Controller and @RestController annotation
- @Autowired – No qualifying bean of type found for dependency
- UnsatisfiedDependencyException: Error creating bean with name
- UnsatisfiedDependencyException: Error creating bean with name
- How to solve the “failed to lazily initialize a collection of role” Hibernate exception
- Spring boot: Unable to start embedded Tomcat servlet container
- model.addAttribute() parameters
- Spring Boot – Unable to resolve Whitelabel Error Page
- Understanding Spring @Autowired usage
- com.atomikos.icatch.SysException: Error in init: Log already in use? tmlog in ./
- HTTP Status 405 – Request method ‘POST’ not supported (Spring MVC)
- “NoClassDefFoundError: Could not initialize class” error
- No String-argument constructor/factory method to deserialize from String value (”)
- “NoClassDefFoundError: Could not initialize class” error
- “NoClassDefFoundError: Could not initialize class” error
- What is difference between CrudRepository and JpaRepository interfaces in Spring Data JPA?
- Unable to create requested service [org.hibernate .engine.jdbc.env.spi.JdbcEnvironment]-MySQL
- HTTP Status 405 – Request method ‘POST’ not supported (Spring MVC)
- How to resolve Error listenerStart when deploying web-app in Tomcat 5.5?
- com.sun.jdi.InvocationException occurred invoking method
- Only using @JsonIgnore during serialization, but not deserialization
- Spring Maven clean error – The requested profile “pom.xml” could not be activated because it does not exist
- intellij incorrectly saying no beans of type found for autowired repository
- Could not resolve placeholder in string value
- Is spring default scope singleton or not?
- MultipartException: Current request is not a multipart request
- How to upload a file and JSON data in Postman?
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- Configure active profile in SpringBoot via Maven
- Downloading a file from spring controllers
- java.lang.IllegalStateException: Failed to introspect Class
- when spring boot startup,throw out the “method names must be tokens” exception
- How to convert nanoseconds to seconds using the TimeUnit enum?
- Using or ‘|’ in regex [duplicate]
- && (AND) and || (OR) in IF statements
- Unable to find valid certification path to requested target – error even after cert imported
- Java – Convert integer to string [duplicate]
- How does System.out.print() work?
- Initialize part of an array in java
- What is the difference between a static method and a non-static method?
- Is there a method that calculates a factorial in Java?
- What is Java Servlet?
- Generating a Random Number between 1 and 10 Java
- “No X11 DISPLAY variable” – what does it mean?
- en_US or en-US, which one should you use?
- javac : command not found
- Java says FileNotFoundException but file exists
- Why am I getting InputMismatchException?
- Java integer list
- How can I properly compare two Integers in Java?
- How to override compareTo (Java)
- Why do I get an UnsupportedOperationException when trying to remove an element from a List?
- java.util.NoSuchElementException: No line found
- How to check whether a int is not null or empty?
- How to parse JSON in Java
- Declaring an unsigned int in Java
- How to get rid of Checkstyle message ‘File does not end with a newline.’
- Uri not Absolute exception getting while calling Restful Webservice
- Very Basic Java
- SQLRecoverableException: I/O Exception: Connection reset
- What exactly is a Maven Snapshot and why do we need it?
- How to check if my string is equal to null?
- what is Ljava.lang.String;@
- “Could not find Java SE Runtime Environment.” after installing Java
- “Javac” doesn’t work correctly on Windows 10
- How to convert a byte array to a hex string in Java?
- How to get the last value of an ArrayList
- ArithmeticException: “Non-terminating decimal expansion; no exact representable decimal result”
- How to check if the value is integer in java?
- Java Error: Invalid top level statement
- How to make an array of arrays in Java
- Instantiating object of type parameter
- Response has aready been committed
- How do I test a class that has private methods, fields or inner classes?
- how to make jni.h be found?
- difference between System.out.println() and System.err.println()
- Selenium — How to wait until page is completely loaded
- Cannot resolve symbol ‘button’ -Android Studio
- Checking to see if array is full
- Tomcat 404 error: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists
- “The import org.springframework cannot be resolved.”
- How to map a composite key with JPA and Hibernate?
- Javac “cannot find symbol”
- Any shortcut to initialize all array elements to zero?
- Simple HTTP server in Java using only Java SE API
- make a JLabel wrap it’s text by setting a max width
- incompatible types: void cannot be converted to int [duplicate]
- How to write logs in text file when using java.util.logging.Logger
- Java Memcached Client
- How to enable the Java keyword assert in Eclipse program-wise?
- Map of maps – how to keep the inner maps as maps?
- method does not override or implement a method from a supertype – for Override
- Hibernate show real SQL
- How can I set size of a button?
- Error message ‘Cannot be resolved or is not a field’