<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kensipe" rel="nofollow">Ken Sipe</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6378?redirect=false" rel="nofollow">SPR-6378</a></strong> and commented</p>
<p dir="auto">I have a demo for Spring 3 Web that I've been running for some time... the upgrade to RC2 broke the demo.  The code is listed below.  What we need is details on the order of requestmappings... I thought I saw that earlier this year in the forums, but I can't find it anymore.  Can someone please provide the details on the order of requestmappings... thanks.</p>
<p dir="auto">The code below (which worked before) now fails for a GET request against the list method or <a href="http://localhost:8080/mvc/book/list" rel="nofollow">http://localhost:8080/mvc/book/list</a></p>
<p dir="auto">I had specified the GET and POST for clarification before on the create methods... after some investigation, I discovered that if I remove the method = RequestMethod.GET on the create method that the app begins to work.  So I can work around this.  What behavior should be expected?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Controller
public class BookController {

    @Autowired
    BookDAO dao;

    // http://localhost:8080/mvc/book/list
    @RequestMapping(&quot;list&quot;)
    public List&lt;Book&gt; list() {
        return dao.findAllBooks();
    }

    // http://localhost:8080/mvc/book/book?id=12
    @RequestMapping(&quot;book&quot;)
    public Book book(@RequestParam(required = true) Long id) {

        Book book = dao.getBook(id);
        return book;
    }

    @RequestMapping(method = RequestMethod.GET)
    public Book create() {
        return new Book();

    }

    // http://localhost:8080/mvc/book/create (POST)
    @RequestMapping(method = RequestMethod.POST)
    public String create(@ModelAttribute Book book, BindingResult results) {

        if (book == null)
            return null;

        dao.save(book);

        return &quot;redirect:list&quot;;
    }
}"><pre class="notranslate"><code class="notranslate">@Controller
public class BookController {

    @Autowired
    BookDAO dao;

    // http://localhost:8080/mvc/book/list
    @RequestMapping("list")
    public List&lt;Book&gt; list() {
        return dao.findAllBooks();
    }

    // http://localhost:8080/mvc/book/book?id=12
    @RequestMapping("book")
    public Book book(@RequestParam(required = true) Long id) {

        Book book = dao.getBook(id);
        return book;
    }

    @RequestMapping(method = RequestMethod.GET)
    public Book create() {
        return new Book();

    }

    // http://localhost:8080/mvc/book/create (POST)
    @RequestMapping(method = RequestMethod.POST)
    public String create(@ModelAttribute Book book, BindingResult results) {

        if (book == null)
            return null;

        dao.save(book);

        return "redirect:list";
    }
}
</code></pre></div>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 RC2</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398100138" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11141" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11141/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11141">#11141</a> Combining ControllerClassNameHandlerMapping and <code class="notranslate">@RequestMapping</code> with relative value on Controller method  doesn't work anymore (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/89975c8b79f052fa218e247d3c33e3ad1fb1bcf5/hovercard" href="https://github.com/spring-projects/spring-framework/commit/89975c8b79f052fa218e247d3c33e3ad1fb1bcf5"><tt>89975c8</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=raja0719" rel="nofollow">raja s kolluru</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1373?redirect=false" rel="nofollow">SPR-1373</a></strong> and commented</p>
<p dir="auto">The PropertyPlaceholderConfigurer is currently not able to handle nested properties. For instance, it may be required for a property name to be obtained from another property. This would result in expressions such as ${${x}} where x would contain the name of the property to evaluate.</p>
<p dir="auto">I extended the PropertyPlaceholderConfigurer to incorporate this functionality. It also removes some cases of circular references that were not caught in the other version of the PropertyPlaceholderConfigurer.</p>
<p dir="auto">This was done in Spring release 1.1.4 which I realize can be different from the current version. I have also got some test cases to test this new functionality.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.1.4</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/11499/NestedPlaceholderConfigurer.java" rel="nofollow">NestedPlaceholderConfigurer.java</a> (<em>8.16 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/11204/PropertyPlaceholder.jar" rel="nofollow">PropertyPlaceholder.jar</a> (<em>13.33 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/12468/PropertyPlaceholderConfigurer.java" rel="nofollow">PropertyPlaceholderConfigurer.java</a> (<em>16.35 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398086867" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9319" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9319/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9319">#9319</a> PropertyPlaceholderConfigurer should support nested keys in placeholder key (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">2 votes, 5 watchers</p>