CREATE TABLE t_act(id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,actno VARCHAR(255) NOT NULL,balance DECIMAL(10,2)) INSERT INTO t_act(id,actno,balance) VALUES(NULL,'act001',50000) INSERT INTO t_act(id,actno,balance) VALUES(NULL,'act002',0) SELECT * FROM t_act SELECT * FROM t_act WHERE actno = 'act001' SELECT * FROM t_act WHERE actno = 'act001'
CREATE TABLE t_act(id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,actno VARCHAR(255) NOT NULL,balance DECIMAL(10,2))
INSERT INTO t_act(id,actno,balance) VALUES(NULL,'act001',50000)
INSERT INTO t_act(id,actno,balance) VALUES(NULL,'act002',0)
SELECT * FROM t_act
SELECT * FROM t_act WHERE actno = 'act001'
SELECT * FROM t_act WHERE actno = 'act001'
package com.bjpowernode.Bank.exception; public class MoneyNotEnoughException extends Exception { public MoneyNotEnoughException(){} public MoneyNotEnoughException(String msg){super(msg);} }
package com.bjpowernode.Bank.exception; public class MoneyNotEnoughException extends Exception { public MoneyNotEnoughException(){} public MoneyNotEnoughException(String msg){super(msg);} }
package com.bjpowernode.Bank.exception; public class AppException extends Exception { public AppException(){} public AppException(String message) { super(message); } }
package com.bjpowernode.Bank.exception; public class AppException extends Exception { public AppException(){} public AppException(String message) { super(message); } }
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Title</title> <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/"> </head> <body> <form action="bank/transfer" method="post"> 转出账户:<input type="text" name="fromActno"><br> 转入账户:<input type="text" name="toActno"><br> 转账金额:<input type="text" name="Value"><br> <input type="submit" name="转账"> </form> </body> </html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Title</title> <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/"> </head> <body> <form action="bank/transfer" method="post"> 转出账户:<input type="text" name="fromActno"><br> 转入账户:<input type="text" name="toActno"><br> 转账金额:<input type="text" name="Value"><br> <input type="submit" name="转账"> </form> </body> </html>