public class SpringappController implements Controller { /** Logger for this class and subclasses */
static Logger logger = Logger.getLogger(SpringappController.class); jakarta-commons import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class SpringappController implements Controller { /** Logger for this class and subclasses */ protected final Log logger = LogFactory.getLog(getClass());
4. 新建Web模块,选菜单File-New,给Web模块取名为springapp
5. 新建hello.jsp文件如下:
<%@ page contentType="text/html; charset=Big5" %> <html> <head><title>Example :: Spring Application</title></head> <body> <h1>Hello - Spring Application</h1> <p>Greetings.</p> </body> </html>
public class SpringappController implements Controller { /** Logger for this class and subclasses */ // protected final Log logger = LogFactory.getLog(getClass());