tag:blogger.com,1999:blog-6026073423954662509.post5169342842346804974..comments2023-04-05T16:46:09.400+02:00Comments on Xavier Padró's Blog: Migrating Spring MVC RESTful web services to Spring 4Anonymoushttp://www.blogger.com/profile/05830415740156192526noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-6026073423954662509.post-62968815755396571092015-05-04T14:48:20.498+02:002015-05-04T14:48:20.498+02:00Thank you!Thank you!Gogsnoreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-71859336487486314702015-01-06T02:25:45.995+01:002015-01-06T02:25:45.995+01:00Thank you for your postThank you for your postAnonymoushttps://www.blogger.com/profile/11557935165072628136noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-82615231633490298212014-12-15T08:31:50.373+01:002014-12-15T08:31:50.373+01:00Hi Daniel,
Because I didn't want the post to ...Hi Daniel,<br /><br />Because I didn't want the post to get too long, I just showed GET operations in the tests. However, you can check out a more complete version at github.<br /><br />Integration tests:<br />https://github.com/xpadro/spring-rest/blob/master/spring-rest-api-v32/src/test/java/xpadro/spring/web/test/SeriesIntegrationTesting.java<br /><br />Functional tests:<br />https://github.com/xpadro/spring-rest/blob/master/spring-rest-api-v32/src/test/java/xpadro/spring/web/test/SeriesFunctionalTesting.javaAnonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-85746396110097733122014-12-13T00:21:30.805+01:002014-12-13T00:21:30.805+01:00Hi Xavier,
I´m trying to insert a serie from rest...Hi Xavier,<br /><br />I´m trying to insert a serie from rest client. I have running my mongodb database and I can instantiate get methods from a rest cilient but I have some problems with post method of insertseries. Which should be the URL I would have to use? How is the JSON I would have to use for?<br /><br />Thanks,<br /><br />DanielDCSJhttps://www.blogger.com/profile/13884357042187453248noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-41896108440409371502014-11-21T17:36:04.761+01:002014-11-21T17:36:04.761+01:00Thanks. Your post reminded me to update the 3 nam...Thanks. Your post reminded me to update the 3 namespace declarations.Ken Linhttp://p1software.comnoreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-23929670931192264222014-07-03T20:08:36.020+02:002014-07-03T20:08:36.020+02:00Do you mean @RestController? It's included sin...Do you mean @RestController? It's included since Spring 4. See the javadoc:<br /><br />http://docs.spring.io/spring/docs/4.0.0.RELEASE/javadoc-api/org/springframework/web/bind/annotation/RestController.htmlAnonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-57525601546843924322014-07-03T11:32:53.417+02:002014-07-03T11:32:53.417+02:00"Including this annotation won't affect m..."Including this annotation won't affect methods annotated with @ResponseEntity."<br />where did you found such annotation?mixaMhttps://www.blogger.com/profile/15284135121573699873noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-87521250335738781612014-04-27T23:32:55.783+02:002014-04-27T23:32:55.783+02:00Thank you! Now I see my HTTP 500.
Thank you! Now I see my HTTP 500.<br />Anonymoushttps://www.blogger.com/profile/03250823557402102063noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-41342623825540248342014-04-27T22:01:33.291+02:002014-04-27T22:01:33.291+02:00Hi Dmitry,
You are forgetting the url pattern for...Hi Dmitry,<br /><br />You are forgetting the url pattern for the spring servlet mapping, which is "/spring/*". The full URL would be: http://localhost:8080/spring-rest-api-v4/spring/series.<br /><br />As you say, once you put the correct URL, you should get a 500 error since MongoDB is not running.Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-42159994739258877052014-04-27T21:13:22.973+02:002014-04-27T21:13:22.973+02:00Thanks for the interesting article.
I have a probl...Thanks for the interesting article.<br />I have a problem both with spring-rest-api-v4 and spring-rest-api-v32:<br />http://localhost:8080/spring-rest-api-v4/series -- HTTP 404<br />It has this mapping to "/series", why is it 404?<br />I did not install MongoDB, I expected it to return HTTP 500, that is the "/series" page would be called.<br />What am I doing wrong?<br />Anonymoushttps://www.blogger.com/profile/03250823557402102063noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-72333149550642168352014-04-21T18:34:49.037+02:002014-04-21T18:34:49.037+02:00Thank you, I hope it helps you with your task :)Thank you, I hope it helps you with your task :)Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-16313291874770033412014-04-19T01:32:59.651+02:002014-04-19T01:32:59.651+02:00Great article, I am about to do the same migration...Great article, I am about to do the same migration. Nice to check out this first and thanks a lot for the sharing!!sadfdsafhttps://www.blogger.com/profile/14770270275711786350noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-42341165321591405462014-04-16T08:49:00.312+02:002014-04-16T08:49:00.312+02:00No, the rest call is done when the getForObject op...No, the rest call is done when the getForObject operation is invoked. This will return the result wrapped into a Future or a specialization like ListenableFuture. The last one accepts then the configuration of callbacks.<br /><br />Regarding your other question, the default constructor of AsyncRestTemplate uses a SimpleAsyncTaskExecutor. This implementation uses a new thread for each task, so in your example it would use 101 threads. However, you can pass another implementation of AsyncTaskExecutor to the overloaded constructor of AsyncRestTemplate.Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-72673801548918280112014-04-11T14:02:32.051+02:002014-04-11T14:02:32.051+02:00Hi i have 2 questions:
1. When is the rest call be...Hi i have 2 questions:<br />1. When is the rest call being made. Shouldnt the callback be set before getforobject?<br />2. How many threads will be allocated if for example we make 100 async calls? 101 or 2? <br />In other words, is there one thread waiting per call or you can set one thread to be allocated for waiting 100 calls?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-75561419308444856852014-03-19T19:04:04.328+01:002014-03-19T19:04:04.328+01:00Thank you Andrii, I appreciate it!Thank you Andrii, I appreciate it!Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-91430962980112570552014-03-19T11:59:15.900+01:002014-03-19T11:59:15.900+01:00Thank you for a good and clean tutorialThank you for a good and clean tutorialAnonymoushttps://www.blogger.com/profile/00731428282492446232noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-19746223464210426842014-02-12T21:33:02.114+01:002014-02-12T21:33:02.114+01:00I'm glad to see you find my post useful. Thank...I'm glad to see you find my post useful. Thank you for your kind words!Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-24662242351960850092014-02-12T13:28:21.766+01:002014-02-12T13:28:21.766+01:00Thanks for sharing such a great posts with a uniqu...Thanks for sharing such a great posts with a unique style! <br />Highly appreciate your efforts Web Serviceshttps://www.srisys.com/webservices.phpnoreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-41703971351617564802014-01-21T14:11:42.522+01:002014-01-21T14:11:42.522+01:00Thanks! I appreciate it.Thanks! I appreciate it.Anonymoushttps://www.blogger.com/profile/05830415740156192526noreply@blogger.comtag:blogger.com,1999:blog-6026073423954662509.post-15089320300563711782014-01-21T05:17:44.870+01:002014-01-21T05:17:44.870+01:00Great job.Great job.Rodrigo Garcia Limahttps://www.blogger.com/profile/15662392490747662499noreply@blogger.com