【发布时间】:2013-12-06 23:30:55
【问题描述】:
大家好,我正在尝试从字符串创建 url,这是我的情况:
我有一个名为 publication(id_pub, title, content) 的表,我需要将 title 属性转换为 url(即 localhost:8080/app/firstPublication.html)
我正在使用 Spring MVC 和 Hibernate Annotations(模型、Daos、服务和控制器类)。
我什至不知道如何对这个问题提出属性问题,如果您需要更多详细信息,请直接问我。
【问题讨论】:
-
告诉我,“publication(id_pub, title, content)”如何变成“localhost:8080/app/firstPublication.html”?
-
@ThomasJunk - 感谢您的提示。现在我可以在工作中放松和看电影了:)
-
@ThomasJunk,听起来不错,感谢您的评论。
标签: java jsp spring-mvc hibernate-annotations