index.jsp
来自「anewssystem新闻发布系统集成使用了spring hibernate f」· JSP 代码 · 共 21 行
JSP
21 行
<% org.springframework.web.context.WebApplicationContext ctx = org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(application); anni.components.activemq.MessageProducer producer = (anni.components.activemq.MessageProducer)ctx.getBean("messageProducer"); out.print(producer); anni.components.activemq.MessageBean messageBean = new anni.components.activemq.MessageBean(); producer.send(messageBean);%><html> <head><script>function go() { location="index.jsp"}</script> </head> <body> <h2>Hello World!</h2> <button onClick="go()">Go!</button> </body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?