https://www.youtube.com/watch?v=JOcjXNkc8og
29 Şubat 2016 Pazartesi
27 Şubat 2016 Cumartesi
SPRING PROJECTS
- Bean scope olarak singleton secilirse o bean defination i icin sadece bir tane instance yaratilir.
- Bean scope olarak prototype secilirse her seferinde o bean a request yapildiginda yeni bir instance olusturulur.
package ornek.spring;
public class ClassA {
private String message;
public void setMessage(String message){
this.message =message;
}
public void getMessage(){
System.out.println("Your message is "+message);
}
}
package ornek.spring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Main {
public static void main(String[] args) {
ApplicationContext context= new ClassPathXmlApplicationContext("Beans.xml");
ClassA obj1 = (ClassA)context.getBean("beanid");
obj1.setMessage("Merhaba");
obj1.getMessage();
ClassA obj2 = (ClassA)context.getBean("beanid");
//obj2.setMessage("naberrrr");
obj2.getMessage();
}
}
BLOGA KOD KUTUSU EKLEMEK
Blogumuzdaki kodlarin kutu icinde yazilmasini istiyorsak yapmamiz gerekenler sunlardir
.<pre style="background-color: lightgrey; color: dimgrey; min-width: 550px; overflow: auto; padding: 20px;"><code>Buraya Kod</code></pre>
.<pre style="background-color: lightgrey; color: dimgrey; min-width: 550px; overflow: auto; padding: 20px;"><code>Buraya Kod</code></pre>
git KULLANIMI
- git config --global user.name geallen
- git config --global user.email gamzesen3827@gmail.com
- Oncelikle bilgisayarimizda git projelerimizi saklamak icin bir klasor olusturmaliyiz.
- Daha sonra github hesabimizi acip orda new repository seceneginde bir repo olusturmaliyiz.
- Sonra olusturdugumuz projeyi bilgisayarimizda directory e clone lamaliyiz.
- Simdilik kendimiz olusturdugumuz bir dosyayi github a nasil yukleyecegimizi gorelim.Ayni zamanda baska projelerimizi github a yuklemek istiyorsak bilgisayarimizda olusturdugumuz lokasyona o projeleri kopyalamaliyiz.Geri kalan islemler ayni sekilde olacaktir.
- Daha sonra initialization yapmaliyiz.
- Projemizi add ile eklemeliyiz.
- Commit ile projemizin kisa bir aciklamasini yazmaliyiz.
- Remote da nereye eklenecegini belirtmeliyiz.
- Son olarak master konumuna pushlamaliyiz.
- Github uzerinden f5 e tiklayip sayfayi yenileyerek yapilan degisiklikleri gorebiliriz.
mkdir myGitProjects
git clone https://github.com/geallen/springJava01.git
touch ornek.txt
git init
git add ornek.txt
git commit -m "First project is added."
git remote add origin https://github.com/geallen/springJava01.git
git push -u origin master
26 Şubat 2016 Cuma
SPRING PROJESINE EKLENEN JAR
Projeye sag tiklayip Build Path secegi secilir.
Acilan kisimda Add External JAR butonu tiklanir.
Spring framework u ile indirilen jar locationa gidilir.
- commons-logging-1.1.1
- spring-aop-4.1.6.RELEASE
- spring-aspects-4.1.6.RELEASE
- spring-beans-4.1.6.RELEASE
- spring-context-4.1.6.RELEASE
- spring-context-support-4.1.6.RELEASE
- spring-core-4.1.6.RELEASE
- spring-expression-4.1.6.RELEASE
- spring-instrument-4.1.6.RELEASE
- spring-instrument-tomcat-4.1.6.RELEASE
- spring-jdbc-4.1.6.RELEASE
- spring-jms-4.1.6.RELEASE
- spring-messaging-4.1.6.RELEASE
- spring-orm-4.1.6.RELEASE
- spring-oxm-4.1.6.RELEASE
- spring-test-4.1.6.RELEASE
- spring-tx-4.1.6.RELEASE
- spring-web-4.1.6.RELEASE
- spring-webmvc-4.1.6.RELEASE
- spring-webmvc-portlet-4.1.6.RELEASE
- spring-websocket-4.1.6.RELEASE
eklenir.
17 Şubat 2016 Çarşamba
Kaydol:
Kayıtlar (Atom)