Professional Documents
Culture Documents
Exp8 SpringMVC Irfan
Exp8 SpringMVC Irfan
8
Setting up a New Project with Spring Web MVC Support
Implementing a Service
import org.springframework.stereotype.Service;
@Service
System.out.println("Total bill for quantity+""+ pizzaType + pizza(s): $" + totalBill); return totalBill;
return 10.0;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Welcome Page</title>
</head>
<body>
<h2>Welcome</h2>
</form>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Greeting Page</title>
</head>
<body>
</body>
</html>
OUTPUT