CHAPTER 4 SPRING FRAMEWORK Wattanapong suttapak, Software Engineering, school of Information communication Technology, university of phayao.

Slides:



Advertisements
Similar presentations
Build your Android App with Gradle Android new build system.
Advertisements

Spring, Hibernate and Web Services 13 th September 2014.
1 Web Services – Part II CS , Spring 2008/9.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
1 Build a Web Application on J2EE. 2 J2EE Scenario Client – Web Server – EIS Resources Client – Web Server – EIS Resources Client – Application Server.
J2EE Java 2 Enterprise Edition. Relevant Topics in The Java Tutorial Topic Web Page JDBC orial/jdbc
Groovy & Grails Jean Barmash CTO, EnergyScoreCards.com
Web Applications Basics. Introduction to Web Web features Clent/Server HTTP HyperText Markup Language URL addresses Web server - a computer program that.
1 Java Server Programming zLecture 1 focuses on: yIntroduction to web services y Web Services using Axis y The bigger Picture: Introduction to J2EE y Java.
Java Servlets and JSP.
Introduction to the Java Stack Michael Youngstrom.
Struts 2.0 an Overview ( )
February Semantion Privately owned, founded in 2000 First commercial implementation of OASIS ebXML Registry and Repository.
Chapter 10 EJB Concepts of EJB Three Components in Creating an EJB Starting/Stopping J2EE Server and Deployment Tool Installation and Configuration of.
NetArchive Suite Workshop 2011 Technical Track - Code refactoring with the Spring Framework.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 29.1 Multi-Tier Architecture 29.2 Web Servers.
Distributed Multitiered Applications The J2EE platform uses a multitiered distributed application model. Application logic is divided into components 1.
OSGi.
MAVEN-BLUEMARTINI Yannick Robin. What is maven-bluemartini?  maven-bluemartini is Maven archetypes for Blue Martini projects  Open source project on.
CaGrid 2.0 December What is caGrid 2.0??? Provides a patch for caGrid 1.x to support SHA2 OSGi implementation of WSRF on the new technical stack.
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
1 Documentum 6 Reviews from Early Adopters Technology Services Group, Inc. October 10, 2007.
Introduction to J2EE Architecture Portions by Kunal Mehta.
JBoss at Work JAW Motors Application Chapter 1-3 Jeff Schmitt October 9, 2006.
Java Server Pages A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format,
|Tecnologie Web L-A Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat
Web Applications - Basics. Introduction to Web Web features Clent/Server HyperText Transfer Protocol HyperText Markup Language URL addresses Web server.
第十四章 J2EE 入门 Introduction What is J2EE ?
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Spring Framework. Spring Overview Spring is an open source layered Java/J2EE application framework Created by Rod Johnson Based on book “Expert one-on-one.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
Open Service Gateway Initiative (OSGi) Reporter : 林學灝 侯承育 1.
Microservices with Spring Boot + Spring Data Using Spring Boot and Spring Data to quick develop HATEOAS microservices Bernardo Silva.
CS 532(Mid-Term)- Project Presentation Team Name – Sprightly Team Members- Varun Kumar (Student id: ) Sowmya Gopisetty (Student id: ) Avneet.
Introduction to the Java Stack Michael Youngstrom.
Spring Framework. About spring Spring is the most popular application development framework for enterprise Java. Millions of developers around the world.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
CHAPTER 2 DATABASE CONNECTION(MYSQ L) Wattanapong suttapak, Software Engineering, school of Information communication Technology, university of phayao.
{ Online Dating Popa Adrian Prejbeanu Samir Stefan Andrei Urziceanu Stefanita.
Middleware 3/29/2001 Kang, Seungwoo Lee, Jinwon. Description of Topics 1. CGI, Servlets, JSPs 2. Sessions/Cookies 3. Database Connection(JDBC, Connection.
Maven for building Java applications By Nalin De Zoysa
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
J2EE Chris Hundersmarck Maria Baron Jeff Webb.  Java 2 Platform, Micro Edition (J2ME)  Java 2 Platform, Standard Edition (J2SE)  Java 2 Platform, Enterprise.
CSI 3125, Preliminaries, page 1 JDBC. CSI 3125, Preliminaries, page 2 JDBC JDBC stands for Java Database Connectivity, which is a standard Java API (application.
1 Distributed System using J2EE. 2 What is J2EE?  J2EE (Java2 Enterprise Edition) offers a suite of software specification to design, develop, assemble.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
Java Programming: Advanced Topics 1 Enterprise JavaBeans Chapter 14.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Overview of the Spring Framework Introducing.
OpenMRS Create New Module.
Introduction – ORM, Helloworld Application
Maven. Introduction Using Maven (I) – Installing the Maven plugin for Eclipse – Creating a Maven Project – Building the Project Understanding the POM.
Java High level programming language ◦ Sun Microsystems ◦ ORACLE acquired Java Development Kit – JDK Java Runtime Environment – JRE Java Virtual Machine.
Business Applications– Using Java _____ Presented by Priya Saha.
CS520 Web Programming Spring – Web MVC Chengyu Sun California State University, Los Angeles.
Agenda:- DevOps Tools Chef Jenkins Puppet Apache Ant Apache Maven Logstash Docker New Relic Gradle Git.
Maven 04 March
Modern “Servlet” Development
Chapter 5 Remote Procedure Call
Overall Architecture and Component Model
Profitability Management Logical Diagram
Introduction to J2EE Architecture
Zlatko Stamatov JavaSkop 13 December 2015
ESIS Consulting LLC (C) ESIS Consulting LLC. All rights reserved
CS 240 – Advanced Programming Concepts
International Living Atlases Workshop Madrid 2018
CS4961 Software Design Laboratory Understand Aquila Backend
Building LabKey with Gradle
Software Engineering and Architecture
Plug-In Architecture Pattern
Presentation transcript:

CHAPTER 4 SPRING FRAMEWORK Wattanapong suttapak, Software Engineering, school of Information communication Technology, university of phayao

จุดประสงค์การเรียนรู้ ตั้งค่า spring framework เพิ่ม ลบ แก้ไข ค้นหา ข้อมูลภายในตารางของ ฐานข้อมูลโดยใช้ spring framework ได้

SPRING FRAMEWORK what is spring framework? The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

SPRING FRAMEWORK

ARCHITECTURAL CONCEPT :: 3 TIER 3 tier - presentation tier - business, domain logic, middle tier - data tier View Controller Model JSP Spring Hibernate

SPRING FRAMEWORK useful 1. application developer  Make a Java method execute in a database transaction without having to deal with transaction APIs.  Dependency Injection and Inversion of Control  Aspect-Oriented Programming(AOP)  Spring MVC web application and RESTful web service framework  Foundation support JDBC, JPA, JMA, JMS, Hibernate Framework

DEPENDENCY INJECTION setWriter(obj) NiceWriter obj; IWriter obj;

DEPENDENCY INJECTION META-INF/beans.xml Main.java

SPRING FRAMEWORK prerequisite - Eclipse - Maven or Gradle

GRADLE WHAT IS GRADLE? Gradle is an open source build automation system. Gradle can automate the building, testing, publishing, deployment and more of software packages or other types of projects such as generated static websites, generated documentation or indeed anything else. Gradle combines the power and flexibility of Ant with the dependency management and conventions of Maven into a more effective way to build. Powered by Build Programming Language, Gradle is concise yet expressive.AntMaven

INSTALLATION GUIDE

gradle build

INSTALLATION GUIDE

TEST JAVA APPLICATION gradle run

DEPENDENCY INJECTION

gradle clean gradle build gradle run

GRADLE WEB APPLICATION create java dynamic website convert java web to gradle reconvert folder src\main\... to java build path

GRADLE WEB APPLICATION

build.gradle buildscript { repositories { mavenCentral() maven { url " } maven { url " } } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin: RELEASE") } apply plugin: 'java' apply plugin: 'spring-boot‘ apply plugin: ‘war’ jar { baseName = 'myproject' version = '0.0.1-SNAPSHOT' } repositories { mavenCentral() maven { url " } maven { url " } } dependencies { compile("org.springframework.boot:spring-boot-starter-web") testCompile("org.springframework.boot:spring-boot-starter-test") }

GRADLE WEB APPLICATION SampleController package com.spring; import org.springframework.boot.*; import org.springframework.boot.autoconfigure.*; import org.springframework.stereotype.*; public class String home() { return "Hello World!"; } public static void main(String[] args) throws Exception { SpringApplication.run(SampleController.class, args); } public static void main(String[] args) throws Exception { SpringApplication spring = new SpringApplication(SampleController.class); spring.setShowBanner(false); spring.run(args); }

GRADLE WEB APPLICATION export spring-boot to exist tomcat or JEE Server