├── 1 firstproj ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── first │ │ │ ├── Alien.java │ │ │ └── FirstprojApplication.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── telusko │ └── first │ └── FirstprojApplicationTests.java ├── 10 SpringDemo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── .springBeans ├── pom.xml ├── src │ ├── main │ │ └── java │ │ │ ├── com │ │ │ └── telusko │ │ │ │ └── SpringDemo │ │ │ │ ├── Alien.java │ │ │ │ ├── App.java │ │ │ │ ├── Computer.java │ │ │ │ ├── Desktop.java │ │ │ │ └── Laptop.java │ │ │ └── spring.xml │ └── test │ │ └── java │ │ └── com │ │ └── telusko │ │ └── SpringDemo │ │ └── AppTest.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.telusko │ │ │ └── SpringDemo │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── com │ │ └── telusko │ │ │ └── SpringDemo │ │ │ ├── Alien.class │ │ │ ├── App.class │ │ │ ├── Computer.class │ │ │ ├── Desktop.class │ │ │ └── Laptop.class │ └── spring.xml │ └── test-classes │ └── com │ └── telusko │ └── SpringDemo │ └── AppTest.class ├── 11 SpringDemo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── .springBeans ├── pom.xml ├── src │ ├── main │ │ └── java │ │ │ ├── com │ │ │ └── telusko │ │ │ │ └── SpringDemo │ │ │ │ ├── Alien.java │ │ │ │ ├── App.java │ │ │ │ ├── Computer.java │ │ │ │ ├── Desktop.java │ │ │ │ └── Laptop.java │ │ │ └── spring.xml │ └── test │ │ └── java │ │ └── com │ │ └── telusko │ │ └── SpringDemo │ │ └── AppTest.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.telusko │ │ │ └── SpringDemo │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── com │ │ └── telusko │ │ │ └── SpringDemo │ │ │ ├── Alien.class │ │ │ ├── App.class │ │ │ ├── Computer.class │ │ │ ├── Desktop.class │ │ │ └── Laptop.class │ └── spring.xml │ └── test-classes │ └── com │ └── telusko │ └── SpringDemo │ └── AppTest.class ├── 12 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ └── DemoApplication.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── index.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 13 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ └── HomeController.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── index.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 14 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ └── HomeController.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── index.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 15 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ └── HomeController.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ ├── index.jsp │ │ └── result.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 16 demo ├── .gitignore ├── .metadata │ ├── .lock │ ├── .log │ ├── .mylyn │ │ └── repositories.xml.zip │ ├── .plugins │ │ ├── org.eclipse.core.resources │ │ │ ├── .history │ │ │ │ └── 27 │ │ │ │ │ └── 9044256417c700191afd848d3631528b │ │ │ ├── .projects │ │ │ │ └── Servers │ │ │ │ │ └── .indexes │ │ │ │ │ └── 48 │ │ │ │ │ └── history.index │ │ │ ├── .root │ │ │ │ ├── .indexes │ │ │ │ │ ├── history.version │ │ │ │ │ ├── properties.index │ │ │ │ │ └── properties.version │ │ │ │ └── 1.tree │ │ │ └── .safetable │ │ │ │ └── org.eclipse.core.resources │ │ ├── org.eclipse.e4.workbench │ │ │ └── workbench.xmi │ │ ├── org.eclipse.jdt.core │ │ │ ├── assumedExternalFilesCache │ │ │ ├── externalFilesCache │ │ │ ├── javaLikeNames.txt │ │ │ ├── nonChainingJarsCache │ │ │ └── variablesAndContainers.dat │ │ ├── org.eclipse.jdt.launching │ │ │ ├── .install.xml │ │ │ └── libraryInfos.xml │ │ ├── org.eclipse.jdt.ui │ │ │ ├── OpenTypeHistory.xml │ │ │ ├── QualifiedTypeNameHistory.xml │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.m2e.core.ui │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.m2e.core │ │ │ ├── nexus │ │ │ │ ├── 05b0fe8524860bd73cbb07ef30fb34cc │ │ │ │ │ ├── _0.cfs │ │ │ │ │ ├── segments.gen │ │ │ │ │ ├── segments_2 │ │ │ │ │ └── write.lock │ │ │ │ ├── 830bc118332e77292949ed1e6d2fabe0 │ │ │ │ │ ├── _0.cfs │ │ │ │ │ ├── segments.gen │ │ │ │ │ ├── segments_2 │ │ │ │ │ └── write.lock │ │ │ │ └── dafcb8317105c12bf508ae1d42d949ed │ │ │ │ │ ├── _0.cfs │ │ │ │ │ ├── segments.gen │ │ │ │ │ ├── segments_2 │ │ │ │ │ └── write.lock │ │ │ └── workspaceState.ser │ │ ├── org.eclipse.m2e.logback.configuration │ │ │ ├── 0.log │ │ │ └── logback.1.12.0.20190529-1916.xml │ │ ├── org.eclipse.pde.core │ │ │ └── .cache │ │ │ │ └── clean-cache.properties │ │ ├── org.eclipse.rse.core │ │ │ ├── .log │ │ │ └── initializerMarks │ │ │ │ └── org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark │ │ ├── org.eclipse.ui.workbench │ │ │ ├── dialog_settings.xml │ │ │ └── workingsets.xml │ │ ├── org.eclipse.ui │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.wst.jsdt.core │ │ │ ├── externalLibsTimeStamps │ │ │ ├── libraries │ │ │ │ ├── baseBrowserLibrary.js │ │ │ │ ├── browserWindow.js │ │ │ │ ├── dom5.js │ │ │ │ ├── system.js │ │ │ │ └── xhr.js │ │ │ └── variablesAndContainers.dat │ │ ├── org.eclipse.wst.server.core │ │ │ └── servers.xml │ │ ├── org.eclipse.wst.sse.core │ │ │ └── task-tags.properties │ │ ├── org.springframework.ide.eclipse.aop.core │ │ │ └── .state │ │ ├── org.springframework.ide.eclipse.beans.core.metadata │ │ │ ├── metadata │ │ │ │ └── .state │ │ │ └── properties │ │ │ │ └── .state │ │ └── org.springsource.ide.eclipse.dashboard.ui │ │ │ └── feeds │ │ │ ├── dashboard.feeds.blogs │ │ │ └── -549550714.xml │ │ │ └── dashboard.feeds.update │ │ │ └── -1223306788.xml │ └── version.ini ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── Servers │ └── Pivotal tc Server Developer Edition v4.0-config │ │ ├── catalina.policy │ │ ├── catalina.properties │ │ ├── context.xml │ │ ├── jmxremote.access │ │ ├── jmxremote.password │ │ ├── server.xml │ │ ├── tomcat-users.xml │ │ └── web.xml ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ └── HomeController.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ ├── index.jsp │ │ └── result.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 17 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ └── HomeController.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── views │ │ ├── index.jsp │ │ └── result.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 18 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ └── HomeController.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── views │ │ ├── index.jsp │ │ └── result.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 19 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── views │ │ ├── index.jsp │ │ └── result.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 2 firstproj ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── first │ │ │ ├── Alien.java │ │ │ ├── FirstprojApplication.java │ │ │ └── Laptop.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── telusko │ └── first │ └── FirstprojApplicationTests.java ├── 20 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── views │ │ ├── index.jsp │ │ └── result.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 21 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── views │ │ ├── index.jsp │ │ └── result.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 22 springmvc ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ ├── org.eclipse.wst.jsdt.ui.superType.name │ └── org.eclipse.wst.validation.prefs ├── Users │ └── Telusko │ │ └── Desktop │ │ └── Spring Course udemy │ │ └── Course │ │ └── Spring MVC Project_31 │ │ └── springmvc │ │ └── target │ │ └── m2e-wtp │ │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── com.telusko │ │ └── springmvc │ │ ├── pom.properties │ │ └── pom.xml ├── pom.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvc │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ │ └── webapp │ │ ├── WEB-INF │ │ └── web.xml │ │ └── views │ │ ├── index.jsp │ │ └── result.jsp └── target │ ├── classes │ └── com │ │ └── telusko │ │ └── springmvc │ │ ├── HomeController.class │ │ └── model │ │ └── Alien.class │ └── m2e-wtp │ └── web-resources │ └── META-INF │ ├── MANIFEST.MF │ └── maven │ └── com.telusko │ └── springmvc │ ├── pom.properties │ └── pom.xml ├── 23 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── views │ │ ├── index.jsp │ │ └── result.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 24 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── views │ │ ├── index.jsp │ │ ├── result.jsp │ │ └── showAliens.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 25 springmvc ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ ├── org.eclipse.wst.jsdt.ui.superType.name │ └── org.eclipse.wst.validation.prefs ├── Users │ └── Telusko │ │ └── Desktop │ │ └── Spring Course udemy │ │ └── Course │ │ └── Spring MVC Part 2_32 (Not Running) │ │ └── springmvc │ │ └── target │ │ └── m2e-wtp │ │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── com.telusko │ │ └── springmvc │ │ ├── pom.properties │ │ └── pom.xml ├── pom.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvc │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ │ └── webapp │ │ ├── WEB-INF │ │ ├── telusko-servlet.xml │ │ └── web.xml │ │ └── views │ │ ├── index.jsp │ │ └── result.jsp └── target │ ├── classes │ └── com │ │ └── telusko │ │ └── springmvc │ │ ├── HomeController.class │ │ └── model │ │ └── Alien.class │ └── m2e-wtp │ └── web-resources │ └── META-INF │ ├── MANIFEST.MF │ └── maven │ └── com.telusko │ └── springmvc │ ├── pom.properties │ └── pom.xml ├── 26 springmvc ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ ├── org.eclipse.wst.jsdt.ui.superType.name │ └── org.eclipse.wst.validation.prefs ├── Users │ └── Telusko │ │ └── Desktop │ │ └── Spring Course udemy │ │ └── Course │ │ └── Spring Hibernate Config_36 │ │ └── springmvc │ │ └── target │ │ └── m2e-wtp │ │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── com.telusko │ │ └── springmvc │ │ ├── pom.properties │ │ └── pom.xml ├── pom.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvc │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ │ └── webapp │ │ ├── WEB-INF │ │ ├── telusko-servlet.xml │ │ └── web.xml │ │ └── views │ │ ├── index.jsp │ │ └── result.jsp └── target │ ├── classes │ └── com │ │ └── telusko │ │ └── springmvc │ │ ├── HomeController.class │ │ └── model │ │ └── Alien.class │ └── m2e-wtp │ └── web-resources │ └── META-INF │ ├── MANIFEST.MF │ └── maven │ └── com.telusko │ └── springmvc │ ├── pom.properties │ └── pom.xml ├── 27 springmvc ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ ├── org.eclipse.wst.jsdt.ui.superType.name │ └── org.eclipse.wst.validation.prefs ├── Users │ └── Telusko │ │ └── Desktop │ │ └── Spring Course udemy │ │ └── Course │ │ └── DAO Creation_38 │ │ └── springmvc │ │ └── target │ │ └── m2e-wtp │ │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── com.telusko │ │ └── springmvc │ │ ├── pom.properties │ │ └── pom.xml ├── pom.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvc │ │ │ ├── HomeController.java │ │ │ ├── dao │ │ │ └── AlienDao.java │ │ │ └── model │ │ │ └── Alien.java │ │ └── webapp │ │ ├── WEB-INF │ │ ├── telusko-servlet.xml │ │ └── web.xml │ │ └── views │ │ ├── index.jsp │ │ ├── result.jsp │ │ └── showAliens.jsp └── target │ ├── classes │ └── com │ │ └── telusko │ │ └── springmvc │ │ ├── HomeController.class │ │ ├── dao │ │ └── AlienDao.class │ │ └── model │ │ └── Alien.class │ └── m2e-wtp │ └── web-resources │ └── META-INF │ ├── MANIFEST.MF │ └── maven │ └── com.telusko │ └── springmvc │ ├── pom.properties │ └── pom.xml ├── 28 springmvc ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ ├── org.eclipse.wst.jsdt.ui.superType.name │ └── org.eclipse.wst.validation.prefs ├── Users │ └── Telusko │ │ └── Desktop │ │ └── Spring Course udemy │ │ └── Course │ │ └── Add and Fetch_39 │ │ └── springmvc │ │ └── target │ │ └── m2e-wtp │ │ └── web-resources │ │ └── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ └── com.telusko │ │ └── springmvc │ │ ├── pom.properties │ │ └── pom.xml ├── pom.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvc │ │ │ ├── HomeController.java │ │ │ ├── dao │ │ │ └── AlienDao.java │ │ │ └── model │ │ │ └── Alien.java │ │ └── webapp │ │ ├── WEB-INF │ │ ├── telusko-servlet.xml │ │ └── web.xml │ │ └── views │ │ ├── index.jsp │ │ ├── result.jsp │ │ └── showAliens.jsp └── target │ ├── classes │ └── com │ │ └── telusko │ │ └── springmvc │ │ ├── HomeController.class │ │ ├── dao │ │ └── AlienDao.class │ │ └── model │ │ └── Alien.class │ └── m2e-wtp │ └── web-resources │ └── META-INF │ ├── MANIFEST.MF │ └── maven │ └── com.telusko │ └── springmvc │ ├── pom.properties │ └── pom.xml ├── 29 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── DemoApplication.java │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── views │ │ ├── index.jsp │ │ ├── result.jsp │ │ └── showAliens.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 3 SpringDemo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── .springBeans ├── pom.xml ├── spring.xml ├── src │ ├── main │ │ └── java │ │ │ └── com │ │ │ └── telusko │ │ │ └── SpringDemo │ │ │ ├── Alien.java │ │ │ └── App.java │ └── test │ │ └── java │ │ └── com │ │ └── telusko │ │ └── SpringDemo │ │ └── AppTest.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.telusko │ │ │ └── SpringDemo │ │ │ ├── pom.properties │ │ │ └── pom.xml │ └── com │ │ └── telusko │ │ └── SpringDemo │ │ ├── Alien.class │ │ └── App.class │ └── test-classes │ └── com │ └── telusko │ └── SpringDemo │ └── AppTest.class ├── 30 demo ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── springmvcboot │ │ │ ├── AlienRepo.java │ │ │ ├── DemoApplication.java │ │ │ ├── HomeController.java │ │ │ └── model │ │ │ └── Alien.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── views │ │ ├── index.jsp │ │ ├── result.jsp │ │ └── showAliens.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── springmvcboot │ └── DemoApplicationTests.java ├── 31 SecureApp ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── secureapp │ │ │ ├── HomeController.java │ │ │ └── SecureAppApplication.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── home.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── secureapp │ └── SecureAppApplicationTests.java ├── 32 SecureApp ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── secureapp │ │ │ ├── AppSecurityConfig.java │ │ │ ├── HomeController.java │ │ │ └── SecureAppApplication.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── home.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── secureapp │ └── SecureAppApplicationTests.java ├── 33 SecureApp ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── secureapp │ │ │ ├── AppSecurityConfig.java │ │ │ ├── HomeController.java │ │ │ ├── MyUserDetailsSevice.java │ │ │ ├── SecureAppApplication.java │ │ │ ├── User.java │ │ │ ├── UserPrincipal.java │ │ │ └── UserRepository.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── home.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── secureapp │ └── SecureAppApplicationTests.java ├── 34 SecureApp ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── telusko │ │ │ └── secureapp │ │ │ ├── AppSecurityConfig.java │ │ │ ├── HomeController.java │ │ │ ├── MyUserDetailsSevice.java │ │ │ ├── SecureAppApplication.java │ │ │ ├── User.java │ │ │ ├── UserPrincipal.java │ │ │ └── UserRepository.java │ ├── resources │ │ └── application.properties │ └── webapp │ │ └── home.jsp │ └── test │ └── java │ └── com │ └── telusko │ └── secureapp │ └── SecureAppApplicationTests.java ├── 4 SpringDemo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── .springBeans ├── pom.xml ├── src │ ├── main │ │ └── java │ │ │ ├── com │ │ │ └── telusko │ │ │ │ └── SpringDemo │ │ │ │ ├── Alien.java │ │ │ │ └── App.java │ │ │ └── spring.xml │ └── test │ │ └── java │ │ └── com │ │ └── telusko │ │ └── SpringDemo │ │ └── AppTest.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.telusko │ │ │ └── SpringDemo │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── com │ │ └── telusko │ │ │ └── SpringDemo │ │ │ ├── Alien.class │ │ │ └── App.class │ └── spring.xml │ └── test-classes │ └── com │ └── telusko │ └── SpringDemo │ └── AppTest.class ├── 5 SpringDemo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── .springBeans ├── pom.xml ├── src │ ├── main │ │ └── java │ │ │ ├── com │ │ │ └── telusko │ │ │ │ └── SpringDemo │ │ │ │ ├── Alien.java │ │ │ │ └── App.java │ │ │ └── spring.xml │ └── test │ │ └── java │ │ └── com │ │ └── telusko │ │ └── SpringDemo │ │ └── AppTest.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.telusko │ │ │ └── SpringDemo │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── com │ │ └── telusko │ │ │ └── SpringDemo │ │ │ ├── Alien.class │ │ │ └── App.class │ └── spring.xml │ └── test-classes │ └── com │ └── telusko │ └── SpringDemo │ └── AppTest.class ├── 6 SpringDemo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── .springBeans ├── pom.xml ├── src │ ├── main │ │ └── java │ │ │ ├── com │ │ │ └── telusko │ │ │ │ └── SpringDemo │ │ │ │ ├── Alien.java │ │ │ │ └── App.java │ │ │ └── spring.xml │ └── test │ │ └── java │ │ └── com │ │ └── telusko │ │ └── SpringDemo │ │ └── AppTest.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.telusko │ │ │ └── SpringDemo │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── com │ │ └── telusko │ │ │ └── SpringDemo │ │ │ ├── Alien.class │ │ │ └── App.class │ └── spring.xml │ └── test-classes │ └── com │ └── telusko │ └── SpringDemo │ └── AppTest.class ├── 7 SpringDemo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── .springBeans ├── pom.xml ├── src │ ├── main │ │ └── java │ │ │ ├── com │ │ │ └── telusko │ │ │ │ └── SpringDemo │ │ │ │ ├── Alien.java │ │ │ │ └── App.java │ │ │ └── spring.xml │ └── test │ │ └── java │ │ └── com │ │ └── telusko │ │ └── SpringDemo │ │ └── AppTest.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.telusko │ │ │ └── SpringDemo │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── com │ │ └── telusko │ │ │ └── SpringDemo │ │ │ ├── Alien.class │ │ │ └── App.class │ └── spring.xml │ └── test-classes │ └── com │ └── telusko │ └── SpringDemo │ └── AppTest.class ├── 8 SpringDemo ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── .springBeans ├── pom.xml ├── src │ ├── main │ │ └── java │ │ │ ├── com │ │ │ └── telusko │ │ │ │ └── SpringDemo │ │ │ │ ├── Alien.java │ │ │ │ ├── App.java │ │ │ │ └── Laptop.java │ │ │ └── spring.xml │ └── test │ │ └── java │ │ └── com │ │ └── telusko │ │ └── SpringDemo │ │ └── AppTest.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.telusko │ │ │ └── SpringDemo │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── com │ │ └── telusko │ │ │ └── SpringDemo │ │ │ ├── Alien.class │ │ │ ├── App.class │ │ │ └── Laptop.class │ └── spring.xml │ └── test-classes │ └── com │ └── telusko │ └── SpringDemo │ └── AppTest.class └── 9 SpringDemo ├── .classpath ├── .project ├── .settings ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs └── org.eclipse.m2e.core.prefs ├── .springBeans ├── pom.xml ├── src ├── main │ └── java │ │ ├── com │ │ └── telusko │ │ │ └── SpringDemo │ │ │ ├── Alien.java │ │ │ ├── App.java │ │ │ └── Laptop.java │ │ └── spring.xml └── test │ └── java │ └── com │ └── telusko │ └── SpringDemo │ └── AppTest.java └── target ├── classes ├── META-INF │ ├── MANIFEST.MF │ └── maven │ │ └── com.telusko │ │ └── SpringDemo │ │ ├── pom.properties │ │ └── pom.xml ├── com │ └── telusko │ │ └── SpringDemo │ │ ├── Alien.class │ │ ├── App.class │ │ └── Laptop.class └── spring.xml └── test-classes └── com └── telusko └── SpringDemo └── AppTest.class /1 firstproj/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /1 firstproj/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/1 firstproj/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /1 firstproj/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /1 firstproj/src/main/java/com/telusko/first/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.first; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | @Component 6 | public class Alien 7 | { 8 | public void code() 9 | { 10 | System.out.println("Im Coding"); 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /1 firstproj/src/main/java/com/telusko/first/FirstprojApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.first; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.ApplicationContext; 6 | 7 | @SpringBootApplication 8 | public class FirstprojApplication { 9 | 10 | public static void main(String[] args) { 11 | ApplicationContext context = SpringApplication.run(FirstprojApplication.class, args); 12 | Alien obj= context.getBean(Alien.class); 13 | obj.code(); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /1 firstproj/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /1 firstproj/src/test/java/com/telusko/first/FirstprojApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.first; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class FirstprojApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /10 SpringDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /10 SpringDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /10 SpringDemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /10 SpringDemo/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /10 SpringDemo/src/main/java/com/telusko/SpringDemo/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Alien 4 | { 5 | private int age; 6 | private Computer com; 7 | 8 | public Alien() { 9 | System.out.println("Alien Object Created.."); 10 | } 11 | 12 | 13 | 14 | public Computer getCom() { 15 | return com; 16 | } 17 | 18 | 19 | 20 | public void setCom(Computer com) { 21 | this.com = com; 22 | } 23 | 24 | 25 | 26 | public int getAge() { 27 | return age; 28 | } 29 | public void setAge(int age) { 30 | System.out.println("Age Assigned"); 31 | this.age = age; 32 | } 33 | 34 | 35 | public void code() 36 | { 37 | System.out.println("Im Coding.."); 38 | com.compile(); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /10 SpringDemo/src/main/java/com/telusko/SpringDemo/App.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class App 7 | { 8 | public static void main( String[] args ) 9 | { 10 | 11 | ApplicationContext factory = new ClassPathXmlApplicationContext("spring.xml"); 12 | 13 | Alien obj1 = (Alien)factory.getBean("alien"); 14 | obj1.code(); 15 | 16 | System.out.println(obj1.getAge()); 17 | 18 | 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /10 SpringDemo/src/main/java/com/telusko/SpringDemo/Computer.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public interface Computer 4 | { 5 | void compile(); 6 | } 7 | -------------------------------------------------------------------------------- /10 SpringDemo/src/main/java/com/telusko/SpringDemo/Desktop.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Desktop implements Computer 4 | { 5 | public void compile() 6 | { 7 | System.out.println("Code Compiled in a Desktop"); 8 | } 9 | } -------------------------------------------------------------------------------- /10 SpringDemo/src/main/java/com/telusko/SpringDemo/Laptop.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Laptop implements Computer 4 | { 5 | public void compile() 6 | { 7 | System.out.println("Code Compiled in a Laptop"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /10 SpringDemo/src/main/java/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /10 SpringDemo/src/test/java/com/telusko/SpringDemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /10 SpringDemo/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /10 SpringDemo/target/classes/META-INF/maven/com.telusko/SpringDemo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 15:30:02 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Autowire_17\\SpringDemo 4 | m2e.projectName=10 SpringDemo 5 | groupId=com.telusko 6 | artifactId=SpringDemo 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /10 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/10 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class -------------------------------------------------------------------------------- /10 SpringDemo/target/classes/com/telusko/SpringDemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/10 SpringDemo/target/classes/com/telusko/SpringDemo/App.class -------------------------------------------------------------------------------- /10 SpringDemo/target/classes/com/telusko/SpringDemo/Computer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/10 SpringDemo/target/classes/com/telusko/SpringDemo/Computer.class -------------------------------------------------------------------------------- /10 SpringDemo/target/classes/com/telusko/SpringDemo/Desktop.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/10 SpringDemo/target/classes/com/telusko/SpringDemo/Desktop.class -------------------------------------------------------------------------------- /10 SpringDemo/target/classes/com/telusko/SpringDemo/Laptop.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/10 SpringDemo/target/classes/com/telusko/SpringDemo/Laptop.class -------------------------------------------------------------------------------- /10 SpringDemo/target/classes/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /10 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/10 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class -------------------------------------------------------------------------------- /11 SpringDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /11 SpringDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /11 SpringDemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /11 SpringDemo/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /11 SpringDemo/src/main/java/com/telusko/SpringDemo/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Alien 4 | { 5 | private int age; 6 | private Computer com; 7 | 8 | public Alien() { 9 | System.out.println("Alien Object Created.."); 10 | } 11 | 12 | 13 | 14 | public Computer getCom() { 15 | return com; 16 | } 17 | 18 | 19 | 20 | public void setCom(Computer com) { 21 | this.com = com; 22 | } 23 | 24 | 25 | 26 | public int getAge() { 27 | return age; 28 | } 29 | public void setAge(int age) { 30 | System.out.println("Age Assigned"); 31 | this.age = age; 32 | } 33 | 34 | 35 | public void code() 36 | { 37 | System.out.println("Im Coding.."); 38 | com.compile(); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /11 SpringDemo/src/main/java/com/telusko/SpringDemo/App.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class App 7 | { 8 | public static void main( String[] args ) 9 | { 10 | 11 | ApplicationContext factory = new ClassPathXmlApplicationContext("spring.xml"); 12 | 13 | Alien obj1 = (Alien)factory.getBean("alien"); 14 | obj1.code(); 15 | 16 | System.out.println(obj1.getAge()); 17 | 18 | 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /11 SpringDemo/src/main/java/com/telusko/SpringDemo/Computer.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public interface Computer 4 | { 5 | void compile(); 6 | } 7 | -------------------------------------------------------------------------------- /11 SpringDemo/src/main/java/com/telusko/SpringDemo/Desktop.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Desktop implements Computer 4 | { 5 | public void compile() 6 | { 7 | System.out.println("Code Compiled in a Desktop"); 8 | } 9 | } -------------------------------------------------------------------------------- /11 SpringDemo/src/main/java/com/telusko/SpringDemo/Laptop.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Laptop implements Computer 4 | { 5 | public void compile() 6 | { 7 | System.out.println("Code Compiled in a Laptop"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /11 SpringDemo/src/main/java/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /11 SpringDemo/src/test/java/com/telusko/SpringDemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /11 SpringDemo/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /11 SpringDemo/target/classes/META-INF/maven/com.telusko/SpringDemo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 15:32:47 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Primary Bean_18\\SpringDemo 4 | m2e.projectName=11 SpringDemo 5 | groupId=com.telusko 6 | artifactId=SpringDemo 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /11 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/11 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class -------------------------------------------------------------------------------- /11 SpringDemo/target/classes/com/telusko/SpringDemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/11 SpringDemo/target/classes/com/telusko/SpringDemo/App.class -------------------------------------------------------------------------------- /11 SpringDemo/target/classes/com/telusko/SpringDemo/Computer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/11 SpringDemo/target/classes/com/telusko/SpringDemo/Computer.class -------------------------------------------------------------------------------- /11 SpringDemo/target/classes/com/telusko/SpringDemo/Desktop.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/11 SpringDemo/target/classes/com/telusko/SpringDemo/Desktop.class -------------------------------------------------------------------------------- /11 SpringDemo/target/classes/com/telusko/SpringDemo/Laptop.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/11 SpringDemo/target/classes/com/telusko/SpringDemo/Laptop.class -------------------------------------------------------------------------------- /11 SpringDemo/target/classes/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /11 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/11 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class -------------------------------------------------------------------------------- /12 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /12 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/12 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /12 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /12 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /12 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /12 demo/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 | -------------------------------------------------------------------------------- /12 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /13 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /13 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/13 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /13 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /13 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /13 demo/src/main/java/com/telusko/springmvcboot/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | public class HomeController 8 | { 9 | @RequestMapping("/") 10 | public String home() 11 | { 12 | return "index.jsp"; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /13 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /13 demo/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 | -------------------------------------------------------------------------------- /13 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /14 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /14 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/14 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /14 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /14 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /14 demo/src/main/java/com/telusko/springmvcboot/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | public class HomeController 8 | { 9 | @RequestMapping("/") 10 | public String home() 11 | { 12 | return "index.jsp"; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /14 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /14 demo/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 | -------------------------------------------------------------------------------- /14 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /15 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /15 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/15 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /15 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /15 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /15 demo/src/main/java/com/telusko/springmvcboot/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpSession; 5 | 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.RequestParam; 9 | 10 | @Controller 11 | public class HomeController 12 | { 13 | @RequestMapping("/") 14 | public String home() 15 | { 16 | return "index.jsp"; 17 | } 18 | 19 | 20 | @RequestMapping("add") 21 | public String add(@RequestParam("num1")int i ,@RequestParam("num2") int j , HttpSession session) 22 | { 23 | 24 | int num3 = i + j; 25 | 26 | session.setAttribute("num3", "num3"); 27 | 28 | return "result.jsp"; 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /15 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /15 demo/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter 1st number :
14 | Enter 2nd number :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /15 demo/src/main/webapp/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${num3} 11 | 12 | -------------------------------------------------------------------------------- /15 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /16 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /16 demo/.metadata/.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.lock -------------------------------------------------------------------------------- /16 demo/.metadata/.mylyn/repositories.xml.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.mylyn/repositories.xml.zip -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.core.resources/.projects/Servers/.indexes/48/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.core.resources/.projects/Servers/.indexes/48/history.index -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index: -------------------------------------------------------------------------------- 1 | /org.eclipse.jdt.corestateVersionNumber34 -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt: -------------------------------------------------------------------------------- 1 | aj 2 | java -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat: -------------------------------------------------------------------------------- 1 | JRE_LIBJRE_SRC ASPECTJRT_LIB JRE_SRCROOT 2 | JUNIT_HOME ECLIPSE_HOMEJUNIT_SRC_HOMEM2_REPO -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.jdt.launching/.install.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/_0.cfs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/_0.cfs -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments.gen: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments.gen -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments_2 -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/write.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/write.lock -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/_0.cfs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/_0.cfs -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments.gen: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments.gen -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments_2 -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/write.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/write.lock -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/dafcb8317105c12bf508ae1d42d949ed/_0.cfs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/dafcb8317105c12bf508ae1d42d949ed/_0.cfs -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/dafcb8317105c12bf508ae1d42d949ed/segments.gen: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/dafcb8317105c12bf508ae1d42d949ed/segments.gen -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/dafcb8317105c12bf508ae1d42d949ed/segments_2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/dafcb8317105c12bf508ae1d42d949ed/segments_2 -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/dafcb8317105c12bf508ae1d42d949ed/write.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/nexus/dafcb8317105c12bf508ae1d42d949ed/write.lock -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log: -------------------------------------------------------------------------------- 1 | 2019-08-25 14:34:44,130 [Worker-5: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 2 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties: -------------------------------------------------------------------------------- 1 | #Cached timestamps 2 | #Sun Aug 25 14:35:46 IST 2019 3 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.rse.core/.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.rse.core/.log -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.rse.core/initializerMarks/org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.rse.core/initializerMarks/org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.ui/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.wst.jsdt.core/externalLibsTimeStamps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.eclipse.wst.jsdt.core/externalLibsTimeStamps -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.wst.jsdt.core/variablesAndContainers.dat: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.wst.server.core/servers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.eclipse.wst.sse.core/task-tags.properties: -------------------------------------------------------------------------------- 1 | # 2 | #Sun Aug 25 14:34:55 IST 2019 3 | task-tag-projects-already-scanned=Servers 4 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.springframework.ide.eclipse.aop.core/.state: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.springframework.ide.eclipse.beans.core.metadata/metadata/.state: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.springframework.ide.eclipse.beans.core.metadata/metadata/.state -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.springframework.ide.eclipse.beans.core.metadata/properties/.state: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.springframework.ide.eclipse.beans.core.metadata/properties/.state -------------------------------------------------------------------------------- /16 demo/.metadata/.plugins/org.springsource.ide.eclipse.dashboard.ui/feeds/dashboard.feeds.blogs/-549550714.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.metadata/.plugins/org.springsource.ide.eclipse.dashboard.ui/feeds/dashboard.feeds.blogs/-549550714.xml -------------------------------------------------------------------------------- /16 demo/.metadata/version.ini: -------------------------------------------------------------------------------- 1 | #Sun Aug 25 14:34:39 IST 2019 2 | org.eclipse.core.runtime=2 3 | org.eclipse.platform=4.12.0.v20190605-1800 4 | -------------------------------------------------------------------------------- /16 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/16 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /16 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /16 demo/Servers/Pivotal tc Server Developer Edition v4.0-config/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | WEB-INF/web.xml 5 | 6 | 9 | 11 | 14 | ${catalina.base}/conf/web.xml 15 | -------------------------------------------------------------------------------- /16 demo/Servers/Pivotal tc Server Developer Edition v4.0-config/jmxremote.access: -------------------------------------------------------------------------------- 1 | #admin readonly 2 | admin readwrite 3 | -------------------------------------------------------------------------------- /16 demo/Servers/Pivotal tc Server Developer Edition v4.0-config/jmxremote.password: -------------------------------------------------------------------------------- 1 | # For security reasons the "admin" role has a random password unless the property is overridden at instance creation time. 2 | admin hoxlhpfroflbmdxxlsrokavunbytjdyxkrolptdw 3 | -------------------------------------------------------------------------------- /16 demo/Servers/Pivotal tc Server Developer Edition v4.0-config/tomcat-users.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /16 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /16 demo/src/main/java/com/telusko/springmvcboot/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpSession; 5 | 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.RequestParam; 9 | import org.springframework.web.servlet.ModelAndView; 10 | 11 | @Controller 12 | public class HomeController 13 | { 14 | @RequestMapping("/") 15 | public String home() 16 | { 17 | return "index.jsp"; 18 | } 19 | 20 | 21 | @RequestMapping("add") 22 | public ModelAndView add(@RequestParam("num1")int i ,@RequestParam("num2") int j) 23 | { 24 | ModelAndView mv = new ModelAndView(); 25 | mv.setViewName("result.jsp"); 26 | int num3 = i + j; 27 | 28 | mv.addObject("num3",num3); 29 | 30 | return mv; 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /16 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /16 demo/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter 1st number :
14 | Enter 2nd number :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /16 demo/src/main/webapp/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${num3} 11 | 12 | -------------------------------------------------------------------------------- /16 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /17 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /17 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/17 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /17 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /17 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /17 demo/src/main/java/com/telusko/springmvcboot/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpSession; 5 | 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | import org.springframework.web.bind.annotation.RequestParam; 9 | import org.springframework.web.servlet.ModelAndView; 10 | 11 | @Controller 12 | public class HomeController 13 | { 14 | @RequestMapping("/") 15 | public String home() 16 | { 17 | return "index"; 18 | } 19 | 20 | 21 | @RequestMapping("add") 22 | public ModelAndView add(@RequestParam("num1")int i ,@RequestParam("num2") int j) 23 | { 24 | ModelAndView mv = new ModelAndView(); 25 | mv.setViewName("result"); 26 | int num3 = i + j; 27 | 28 | mv.addObject("num3",num3); 29 | 30 | return mv; 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /17 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix= /views/ 2 | spring.mvc.view.suffix= .jsp 3 | -------------------------------------------------------------------------------- /17 demo/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter 1st number :
14 | Enter 2nd number :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /17 demo/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${num3} 11 | 12 | -------------------------------------------------------------------------------- /17 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /18 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /18 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/18 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /18 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /18 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /18 demo/src/main/java/com/telusko/springmvcboot/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import javax.servlet.http.HttpServletRequest; 4 | import javax.servlet.http.HttpSession; 5 | 6 | import org.springframework.stereotype.Controller; 7 | import org.springframework.ui.Model; 8 | import org.springframework.ui.ModelMap; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.RequestParam; 11 | import org.springframework.web.servlet.ModelAndView; 12 | 13 | @Controller 14 | public class HomeController 15 | { 16 | @RequestMapping("/") 17 | public String home() 18 | { 19 | return "index"; 20 | } 21 | 22 | 23 | @RequestMapping("add") 24 | public String add(@RequestParam("num1")int i ,@RequestParam("num2") int j, Model m) 25 | { 26 | 27 | 28 | int num3 = i + j; 29 | 30 | m.addAttribute("num3",num3); 31 | 32 | return "result"; 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /18 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix= /views/ 2 | spring.mvc.view.suffix= .jsp 3 | -------------------------------------------------------------------------------- /18 demo/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter 1st number :
14 | Enter 2nd number :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /18 demo/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${num3} 11 | 12 | -------------------------------------------------------------------------------- /18 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /19 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /19 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/19 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /19 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /19 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /19 demo/src/main/java/com/telusko/springmvcboot/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot.model; 2 | 3 | public class Alien 4 | { 5 | private int aid; 6 | private String aname; 7 | 8 | public int getAid() { 9 | return aid; 10 | } 11 | public void setAid(int aid) { 12 | this.aid = aid; 13 | } 14 | public String getAname() { 15 | return aname; 16 | } 17 | public void setAname(String aname) { 18 | this.aname = aname; 19 | } 20 | @Override 21 | public String toString() { 22 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /19 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix= /views/ 2 | spring.mvc.view.suffix= .jsp 3 | -------------------------------------------------------------------------------- /19 demo/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /19 demo/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | -------------------------------------------------------------------------------- /19 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /2 firstproj/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /2 firstproj/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/2 firstproj/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /2 firstproj/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /2 firstproj/src/main/java/com/telusko/first/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.first; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Component; 5 | 6 | @Component 7 | public class Alien 8 | { 9 | @Autowired 10 | Laptop lap; 11 | public void code() 12 | { 13 | lap.compile(); 14 | } 15 | } 16 | 17 | -------------------------------------------------------------------------------- /2 firstproj/src/main/java/com/telusko/first/FirstprojApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.first; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.context.ApplicationContext; 6 | 7 | @SpringBootApplication 8 | public class FirstprojApplication { 9 | 10 | public static void main(String[] args) { 11 | ApplicationContext context = SpringApplication.run(FirstprojApplication.class, args); 12 | Alien obj= context.getBean(Alien.class); 13 | obj.code(); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /2 firstproj/src/main/java/com/telusko/first/Laptop.java: -------------------------------------------------------------------------------- 1 | package com.telusko.first; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | @Component 6 | public class Laptop { 7 | 8 | public void compile() { 9 | System.out.println("Compiling"); 10 | 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /2 firstproj/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /2 firstproj/src/test/java/com/telusko/first/FirstprojApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.first; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class FirstprojApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /20 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /20 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/20 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /20 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /20 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /20 demo/src/main/java/com/telusko/springmvcboot/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot.model; 2 | 3 | public class Alien 4 | { 5 | private int aid; 6 | private String aname; 7 | 8 | public int getAid() { 9 | return aid; 10 | } 11 | public void setAid(int aid) { 12 | this.aid = aid; 13 | } 14 | public String getAname() { 15 | return aname; 16 | } 17 | public void setAname(String aname) { 18 | this.aname = aname; 19 | } 20 | @Override 21 | public String toString() { 22 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /20 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix= /views/ 2 | spring.mvc.view.suffix= .jsp 3 | -------------------------------------------------------------------------------- /20 demo/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /20 demo/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | -------------------------------------------------------------------------------- /20 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /21 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /21 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/21 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /21 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /21 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /21 demo/src/main/java/com/telusko/springmvcboot/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot.model; 2 | 3 | public class Alien 4 | { 5 | private int aid; 6 | private String aname; 7 | 8 | public int getAid() { 9 | return aid; 10 | } 11 | public void setAid(int aid) { 12 | this.aid = aid; 13 | } 14 | public String getAname() { 15 | return aname; 16 | } 17 | public void setAname(String aname) { 18 | this.aname = aname; 19 | } 20 | @Override 21 | public String toString() { 22 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /21 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix= /views/ 2 | spring.mvc.view.suffix= .jsp 3 | -------------------------------------------------------------------------------- /21 demo/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /21 demo/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /21 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /22 springmvc/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /22 springmvc/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 12 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 13 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 14 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 15 | org.eclipse.jdt.core.compiler.release=disabled 16 | org.eclipse.jdt.core.compiler.source=1.8 17 | -------------------------------------------------------------------------------- /22 springmvc/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /22 springmvc/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /22 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /22 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /22 springmvc/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /22 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/Spring MVC Project_31/springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /22 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/Spring MVC Project_31/springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:29:23 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\git\\SpringCourseUdemy\\22 springmvc 4 | m2e.projectName=22 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /22 springmvc/src/main/java/com/telusko/springmvc/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvc.model; 2 | 3 | public class Alien 4 | { 5 | private int aid; 6 | private String aname; 7 | 8 | public int getAid() { 9 | return aid; 10 | } 11 | public void setAid(int aid) { 12 | this.aid = aid; 13 | } 14 | public String getAname() { 15 | return aname; 16 | } 17 | public void setAname(String aname) { 18 | this.aname = aname; 19 | } 20 | @Override 21 | public String toString() { 22 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /22 springmvc/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | Archetype Created Web Application 7 | 8 | -------------------------------------------------------------------------------- /22 springmvc/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /22 springmvc/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /22 springmvc/target/classes/com/telusko/springmvc/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/22 springmvc/target/classes/com/telusko/springmvc/HomeController.class -------------------------------------------------------------------------------- /22 springmvc/target/classes/com/telusko/springmvc/model/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/22 springmvc/target/classes/com/telusko/springmvc/model/Alien.class -------------------------------------------------------------------------------- /22 springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /22 springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:29:15 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Spring MVC Project_31\\springmvc 4 | m2e.projectName=22 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /23 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /23 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/23 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /23 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /23 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /23 demo/src/main/java/com/telusko/springmvcboot/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot.model; 2 | 3 | public class Alien 4 | { 5 | private int aid; 6 | private String aname; 7 | 8 | public int getAid() { 9 | return aid; 10 | } 11 | public void setAid(int aid) { 12 | this.aid = aid; 13 | } 14 | public String getAname() { 15 | return aname; 16 | } 17 | public void setAname(String aname) { 18 | this.aname = aname; 19 | } 20 | @Override 21 | public String toString() { 22 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /23 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix= /views/ 2 | spring.mvc.view.suffix= .jsp 3 | -------------------------------------------------------------------------------- /23 demo/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /23 demo/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /23 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /24 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /24 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/24 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /24 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /24 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /24 demo/src/main/java/com/telusko/springmvcboot/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot.model; 2 | 3 | public class Alien 4 | { 5 | private int aid; 6 | private String aname; 7 | 8 | 9 | 10 | public Alien(int aid, String aname) { 11 | super(); 12 | this.aid = aid; 13 | this.aname = aname; 14 | } 15 | 16 | public int getAid() { 17 | return aid; 18 | } 19 | public void setAid(int aid) { 20 | this.aid = aid; 21 | } 22 | public String getAname() { 23 | return aname; 24 | } 25 | public void setAname(String aname) { 26 | this.aname = aname; 27 | } 28 | @Override 29 | public String toString() { 30 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 31 | } 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /24 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix= /views/ 2 | spring.mvc.view.suffix= .jsp 3 | -------------------------------------------------------------------------------- /24 demo/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /24 demo/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /24 demo/src/main/webapp/views/showAliens.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | ${result} 12 | 13 | 14 | -------------------------------------------------------------------------------- /24 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /25 springmvc/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /25 springmvc/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 12 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 13 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 14 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 15 | org.eclipse.jdt.core.compiler.release=disabled 16 | org.eclipse.jdt.core.compiler.source=1.8 17 | -------------------------------------------------------------------------------- /25 springmvc/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /25 springmvc/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /25 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /25 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /25 springmvc/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /25 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/Spring MVC Part 2_32 (Not Running)/springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /25 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/Spring MVC Part 2_32 (Not Running)/springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:35:06 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\git\\SpringCourseUdemy\\25 springmvc 4 | m2e.projectName=25 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /25 springmvc/src/main/java/com/telusko/springmvc/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvc.model; 2 | 3 | public class Alien 4 | { 5 | private int aid; 6 | private String aname; 7 | 8 | public int getAid() { 9 | return aid; 10 | } 11 | public void setAid(int aid) { 12 | this.aid = aid; 13 | } 14 | public String getAname() { 15 | return aname; 16 | } 17 | public void setAname(String aname) { 18 | this.aname = aname; 19 | } 20 | @Override 21 | public String toString() { 22 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /25 springmvc/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | telusko 9 | org.springframework.web.servlet.DispatcherServlet 10 | 11 | 12 | 13 | telusko 14 | / 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /25 springmvc/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /25 springmvc/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /25 springmvc/target/classes/com/telusko/springmvc/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/25 springmvc/target/classes/com/telusko/springmvc/HomeController.class -------------------------------------------------------------------------------- /25 springmvc/target/classes/com/telusko/springmvc/model/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/25 springmvc/target/classes/com/telusko/springmvc/model/Alien.class -------------------------------------------------------------------------------- /25 springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /25 springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:34:57 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Spring MVC Part 2_32 (Not Running)\\springmvc 4 | m2e.projectName=25 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /26 springmvc/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /26 springmvc/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /26 springmvc/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /26 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /26 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /26 springmvc/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /26 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/Spring Hibernate Config_36/springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /26 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/Spring Hibernate Config_36/springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:36:53 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\git\\SpringCourseUdemy\\26 springmvc 4 | m2e.projectName=26 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /26 springmvc/src/main/java/com/telusko/springmvc/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvc.model; 2 | 3 | public class Alien 4 | { 5 | private int aid; 6 | private String aname; 7 | 8 | public int getAid() { 9 | return aid; 10 | } 11 | public void setAid(int aid) { 12 | this.aid = aid; 13 | } 14 | public String getAname() { 15 | return aname; 16 | } 17 | public void setAname(String aname) { 18 | this.aname = aname; 19 | } 20 | @Override 21 | public String toString() { 22 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /26 springmvc/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | telusko 9 | org.springframework.web.servlet.DispatcherServlet 10 | 11 | 12 | 13 | telusko 14 | / 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /26 springmvc/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /26 springmvc/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /26 springmvc/target/classes/com/telusko/springmvc/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/26 springmvc/target/classes/com/telusko/springmvc/HomeController.class -------------------------------------------------------------------------------- /26 springmvc/target/classes/com/telusko/springmvc/model/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/26 springmvc/target/classes/com/telusko/springmvc/model/Alien.class -------------------------------------------------------------------------------- /26 springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /26 springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:36:45 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Spring Hibernate Config_36\\springmvc 4 | m2e.projectName=26 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /27 springmvc/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /27 springmvc/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /27 springmvc/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /27 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /27 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /27 springmvc/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /27 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/DAO Creation_38/springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /27 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/DAO Creation_38/springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:38:13 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\git\\SpringCourseUdemy\\27 springmvc 4 | m2e.projectName=27 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /27 springmvc/src/main/java/com/telusko/springmvc/dao/AlienDao.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvc.dao; 2 | import java.util.List; 3 | 4 | import javax.transaction.Transactional; 5 | 6 | import org.hibernate.Session; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Component; 9 | 10 | import com.mysql.cj.xdevapi.SessionFactory; 11 | import com.telusko.springmvc.model.Alien; 12 | 13 | 14 | @Component 15 | public class AlienDao 16 | { 17 | @Autowired 18 | private SessionFactory sessionFactory; 19 | 20 | @Transactional 21 | public List getAliens() 22 | { 23 | Session session = sessionFactory.getCurrentSession(); 24 | List aliens = session.createQuery("from Alien",Alien.class).list(); 25 | 26 | return aliens; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /27 springmvc/src/main/java/com/telusko/springmvc/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvc.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.Id; 5 | 6 | @Entity 7 | public class Alien 8 | { 9 | @Id 10 | private int aid; 11 | private String aname; 12 | 13 | public int getAid() { 14 | return aid; 15 | } 16 | public void setAid(int aid) { 17 | this.aid = aid; 18 | } 19 | public String getAname() { 20 | return aname; 21 | } 22 | public void setAname(String aname) { 23 | this.aname = aname; 24 | } 25 | @Override 26 | public String toString() { 27 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 28 | } 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /27 springmvc/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | telusko 9 | org.springframework.web.servlet.DispatcherServlet 10 | 11 | 12 | 13 | telusko 14 | / 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /27 springmvc/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | -------------------------------------------------------------------------------- /27 springmvc/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /27 springmvc/src/main/webapp/views/showAliens.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | ${result}0 12 | 13 | 14 | -------------------------------------------------------------------------------- /27 springmvc/target/classes/com/telusko/springmvc/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/27 springmvc/target/classes/com/telusko/springmvc/HomeController.class -------------------------------------------------------------------------------- /27 springmvc/target/classes/com/telusko/springmvc/dao/AlienDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/27 springmvc/target/classes/com/telusko/springmvc/dao/AlienDao.class -------------------------------------------------------------------------------- /27 springmvc/target/classes/com/telusko/springmvc/model/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/27 springmvc/target/classes/com/telusko/springmvc/model/Alien.class -------------------------------------------------------------------------------- /27 springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /27 springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:38:03 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\DAO Creation_38\\springmvc 4 | m2e.projectName=27 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /28 springmvc/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /28 springmvc/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /28 springmvc/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /28 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /28 springmvc/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /28 springmvc/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /28 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/Add and Fetch_39/springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /28 springmvc/Users/Telusko/Desktop/Spring Course udemy/Course/Add and Fetch_39/springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:39:10 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\git\\SpringCourseUdemy\\28 springmvc 4 | m2e.projectName=28 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /28 springmvc/src/main/java/com/telusko/springmvc/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvc.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.Id; 5 | 6 | @Entity 7 | public class Alien 8 | { 9 | @Id 10 | private int aid; 11 | private String aname; 12 | 13 | public int getAid() { 14 | return aid; 15 | } 16 | public void setAid(int aid) { 17 | this.aid = aid; 18 | } 19 | public String getAname() { 20 | return aname; 21 | } 22 | public void setAname(String aname) { 23 | this.aname = aname; 24 | } 25 | @Override 26 | public String toString() { 27 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 28 | } 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /28 springmvc/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | telusko 9 | org.springframework.web.servlet.DispatcherServlet 10 | 11 | 12 | 13 | telusko 14 | / 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /28 springmvc/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 |
18 |
19 | Enter your id :
20 |
21 | 22 | -------------------------------------------------------------------------------- /28 springmvc/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /28 springmvc/src/main/webapp/views/showAliens.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | ${result} 12 | 13 | 14 | -------------------------------------------------------------------------------- /28 springmvc/target/classes/com/telusko/springmvc/HomeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/28 springmvc/target/classes/com/telusko/springmvc/HomeController.class -------------------------------------------------------------------------------- /28 springmvc/target/classes/com/telusko/springmvc/dao/AlienDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/28 springmvc/target/classes/com/telusko/springmvc/dao/AlienDao.class -------------------------------------------------------------------------------- /28 springmvc/target/classes/com/telusko/springmvc/model/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/28 springmvc/target/classes/com/telusko/springmvc/model/Alien.class -------------------------------------------------------------------------------- /28 springmvc/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /28 springmvc/target/m2e-wtp/web-resources/META-INF/maven/com.telusko/springmvc/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 16:39:01 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Add and Fetch_39\\springmvc 4 | m2e.projectName=28 springmvc 5 | groupId=com.telusko 6 | artifactId=springmvc 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /29 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /29 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/29 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /29 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /29 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /29 demo/src/main/java/com/telusko/springmvcboot/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot.model; 2 | 3 | public class Alien 4 | { 5 | private int aid; 6 | private String aname; 7 | 8 | public Alien( ) {} 9 | 10 | public Alien(int aid, String aname) { 11 | super(); 12 | this.aid = aid; 13 | this.aname = aname; 14 | } 15 | 16 | public int getAid() { 17 | return aid; 18 | } 19 | public void setAid(int aid) { 20 | this.aid = aid; 21 | } 22 | public String getAname() { 23 | return aname; 24 | } 25 | public void setAname(String aname) { 26 | this.aname = aname; 27 | } 28 | @Override 29 | public String toString() { 30 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 31 | } 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /29 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix= /views/ 2 | spring.mvc.view.suffix= .jsp 3 | 4 | spring.datasource.url=jdbc:mysql://localhost:3306/telusko 5 | 6 | spring.datasource.username=root 7 | spring.datasource.password=12345678 8 | 9 | 10 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect -------------------------------------------------------------------------------- /29 demo/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /29 demo/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /29 demo/src/main/webapp/views/showAliens.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | ${result}0 12 | 13 | 14 | -------------------------------------------------------------------------------- /29 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /3 SpringDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /3 SpringDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /3 SpringDemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /3 SpringDemo/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | spring.xml 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /3 SpringDemo/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /3 SpringDemo/src/main/java/com/telusko/SpringDemo/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Alien { 4 | public void code() 5 | { 6 | System.out.println("Im Coding.."); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /3 SpringDemo/src/main/java/com/telusko/SpringDemo/App.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import org.springframework.beans.factory.BeanFactory; 4 | import org.springframework.beans.factory.xml.XmlBeanFactory; 5 | import org.springframework.core.io.FileSystemResource; 6 | 7 | public class App 8 | { 9 | public static void main( String[] args ) 10 | { 11 | BeanFactory factory = new XmlBeanFactory(new FileSystemResource("spring.xml")); 12 | Alien obj = (Alien)factory.getBean("alien"); 13 | obj.code(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /3 SpringDemo/src/test/java/com/telusko/SpringDemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /3 SpringDemo/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /3 SpringDemo/target/classes/META-INF/maven/com.telusko/SpringDemo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 15:20:14 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\BeanFactory_10\\SpringDemo 4 | m2e.projectName=3 SpringDemo 5 | groupId=com.telusko 6 | artifactId=SpringDemo 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /3 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/3 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class -------------------------------------------------------------------------------- /3 SpringDemo/target/classes/com/telusko/SpringDemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/3 SpringDemo/target/classes/com/telusko/SpringDemo/App.class -------------------------------------------------------------------------------- /3 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/3 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class -------------------------------------------------------------------------------- /30 demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /30 demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/30 demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /30 demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /30 demo/src/main/java/com/telusko/springmvcboot/AlienRepo.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | import com.telusko.springmvcboot.model.Alien; 6 | 7 | public interface AlienRepo extends JpaRepository{ 8 | 9 | } 10 | -------------------------------------------------------------------------------- /30 demo/src/main/java/com/telusko/springmvcboot/DemoApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DemoApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DemoApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /30 demo/src/main/java/com/telusko/springmvcboot/model/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot.model; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.Id; 5 | 6 | @Entity 7 | public class Alien 8 | { 9 | @Id 10 | private int aid; 11 | private String aname; 12 | 13 | public Alien( ) {} 14 | 15 | public Alien(int aid, String aname) { 16 | super(); 17 | this.aid = aid; 18 | this.aname = aname; 19 | } 20 | 21 | public int getAid() { 22 | return aid; 23 | } 24 | public void setAid(int aid) { 25 | this.aid = aid; 26 | } 27 | public String getAname() { 28 | return aname; 29 | } 30 | public void setAname(String aname) { 31 | this.aname = aname; 32 | } 33 | @Override 34 | public String toString() { 35 | return "Alien [aid=" + aid + ", aname=" + aname + "]"; 36 | } 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /30 demo/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix= /views/ 2 | spring.mvc.view.suffix= .jsp 3 | 4 | spring.datasource.url=jdbc:mysql://localhost:3306/telusko 5 | 6 | spring.datasource.username=root 7 | spring.datasource.password=12345678 8 | 9 | 10 | spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect -------------------------------------------------------------------------------- /30 demo/src/main/webapp/views/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome to Telusko 11 | 12 |
13 | Enter your id :
14 | Enter your name :
15 | 16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /30 demo/src/main/webapp/views/result.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Result is : ${alien} 11 | 12 | Welcome Back ${name} 13 | 14 | -------------------------------------------------------------------------------- /30 demo/src/main/webapp/views/showAliens.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" isELIgnored="false"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | ${result}0 12 | 13 | 14 | -------------------------------------------------------------------------------- /30 demo/src/test/java/com/telusko/springmvcboot/DemoApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.springmvcboot; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DemoApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /31 SecureApp/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /31 SecureApp/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/31 SecureApp/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /31 SecureApp/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /31 SecureApp/src/main/java/com/telusko/secureapp/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | public class HomeController 8 | { 9 | @RequestMapping("/") 10 | public String home() 11 | { 12 | return "home.jsp"; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /31 SecureApp/src/main/java/com/telusko/secureapp/SecureAppApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SecureAppApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SecureAppApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /31 SecureApp/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /31 SecureApp/src/main/webapp/home.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome Aliens.. 11 | 12 | -------------------------------------------------------------------------------- /31 SecureApp/src/test/java/com/telusko/secureapp/SecureAppApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SecureAppApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /32 SecureApp/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /32 SecureApp/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/32 SecureApp/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /32 SecureApp/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /32 SecureApp/src/main/java/com/telusko/secureapp/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | public class HomeController 8 | { 9 | @RequestMapping("/") 10 | public String home() 11 | { 12 | return "home.jsp"; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /32 SecureApp/src/main/java/com/telusko/secureapp/SecureAppApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SecureAppApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SecureAppApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /32 SecureApp/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /32 SecureApp/src/main/webapp/home.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome Aliens.. 11 | 12 | -------------------------------------------------------------------------------- /32 SecureApp/src/test/java/com/telusko/secureapp/SecureAppApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SecureAppApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /33 SecureApp/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /33 SecureApp/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/33 SecureApp/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /33 SecureApp/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /33 SecureApp/src/main/java/com/telusko/secureapp/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | 6 | @Controller 7 | public class HomeController 8 | { 9 | @RequestMapping("/") 10 | public String home() 11 | { 12 | return "home.jsp"; 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /33 SecureApp/src/main/java/com/telusko/secureapp/MyUserDetailsSevice.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.security.core.userdetails.UserDetails; 5 | import org.springframework.security.core.userdetails.UserDetailsService; 6 | import org.springframework.security.core.userdetails.UsernameNotFoundException; 7 | import org.springframework.stereotype.Service; 8 | 9 | @Service 10 | public class MyUserDetailsSevice implements UserDetailsService { 11 | 12 | @Autowired 13 | private UserRepository repo; 14 | 15 | @Override 16 | public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException { 17 | 18 | User user = repo.findByUsername(username); 19 | if(user==null) 20 | throw new UsernameNotFoundException("User 404"); 21 | 22 | return new UserPrincipal(user); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /33 SecureApp/src/main/java/com/telusko/secureapp/SecureAppApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SecureAppApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SecureAppApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /33 SecureApp/src/main/java/com/telusko/secureapp/User.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.Id; 5 | 6 | @Entity 7 | public class User 8 | { 9 | @Id 10 | private long id; 11 | private String username; 12 | private String password; 13 | public long getId() { 14 | return id; 15 | } 16 | public void setId(long id) { 17 | this.id = id; 18 | } 19 | public String getUsername() { 20 | return username; 21 | } 22 | public void setUsername(String username) { 23 | this.username = username; 24 | } 25 | public String getPassword() { 26 | return password; 27 | } 28 | public void setPassword(String password) { 29 | this.password = password; 30 | } 31 | 32 | 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /33 SecureApp/src/main/java/com/telusko/secureapp/UserRepository.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface UserRepository extends JpaRepository { 6 | User findByUsername(String username); 7 | 8 | } 9 | -------------------------------------------------------------------------------- /33 SecureApp/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost:3306/telusko 2 | spring.datasource.username=root 3 | spring.datasource.password=12345678 4 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver 5 | -------------------------------------------------------------------------------- /33 SecureApp/src/main/webapp/home.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome Aliens.. 11 | 12 | -------------------------------------------------------------------------------- /33 SecureApp/src/test/java/com/telusko/secureapp/SecureAppApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SecureAppApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /34 SecureApp/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /34 SecureApp/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/34 SecureApp/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /34 SecureApp/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /34 SecureApp/src/main/java/com/telusko/secureapp/HomeController.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import java.security.Principal; 4 | 5 | import org.springframework.stereotype.Controller; 6 | import org.springframework.web.bind.annotation.RequestMapping; 7 | import org.springframework.web.bind.annotation.ResponseBody; 8 | 9 | @Controller 10 | public class HomeController 11 | { 12 | @RequestMapping("/home") 13 | public String home() 14 | { 15 | return "home.jsp"; 16 | } 17 | @RequestMapping("/login") 18 | public String loginPage() 19 | { 20 | return "login.jsp"; 21 | } 22 | @RequestMapping("/logout-success") 23 | public String logoutPage() 24 | { 25 | return "logout.jsp"; 26 | } 27 | @RequestMapping("user") 28 | @ResponseBody 29 | public Principal user(Principal principal) 30 | { 31 | return principal; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /34 SecureApp/src/main/java/com/telusko/secureapp/MyUserDetailsSevice.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.security.core.userdetails.UserDetails; 5 | import org.springframework.security.core.userdetails.UserDetailsService; 6 | import org.springframework.security.core.userdetails.UsernameNotFoundException; 7 | import org.springframework.stereotype.Service; 8 | 9 | @Service 10 | public class MyUserDetailsSevice implements UserDetailsService { 11 | 12 | @Autowired 13 | private UserRepository repo; 14 | 15 | @Override 16 | public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException { 17 | 18 | User user = repo.findByUsername(username); 19 | if(user==null) 20 | throw new UsernameNotFoundException("User 404"); 21 | 22 | return new UserPrincipal(user); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /34 SecureApp/src/main/java/com/telusko/secureapp/SecureAppApplication.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SecureAppApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SecureAppApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /34 SecureApp/src/main/java/com/telusko/secureapp/User.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.Id; 5 | 6 | @Entity 7 | public class User 8 | { 9 | @Id 10 | private long id; 11 | private String username; 12 | private String password; 13 | public long getId() { 14 | return id; 15 | } 16 | public void setId(long id) { 17 | this.id = id; 18 | } 19 | public String getUsername() { 20 | return username; 21 | } 22 | public void setUsername(String username) { 23 | this.username = username; 24 | } 25 | public String getPassword() { 26 | return password; 27 | } 28 | public void setPassword(String password) { 29 | this.password = password; 30 | } 31 | 32 | 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /34 SecureApp/src/main/java/com/telusko/secureapp/UserRepository.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.springframework.data.jpa.repository.JpaRepository; 4 | 5 | public interface UserRepository extends JpaRepository { 6 | User findByUsername(String username); 7 | 8 | } 9 | -------------------------------------------------------------------------------- /34 SecureApp/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.url=jdbc:mysql://localhost:3306/telusko 2 | spring.datasource.username=root 3 | spring.datasource.password=12345678 4 | spring.datasource.driver-class-name=com.mysql.jdbc.Driver 5 | 6 | 7 | security.oauth2.client.clientId= 758384097877-kflk4up97htssen7774ekh3obs93b8ka.appgoogleusercontent.com 8 | security.oauth2.client.clientSecret= ACiva77Ud0bil69gBM1Cj2_O 9 | security.oauth2.client.accessTokenUri= https://www.googleapis.com/oauth2/v3/token 10 | security.oauth2.client.userAuthorizationUri= https://account.google.com/o/oauth2/auth 11 | security.oauth2.client.tokenName= oauth_token 12 | security.oauth2.client.authenticationScheme=query 13 | security.oauth2.client.clientAuthenticationScheme= form 14 | security.oauth2.client.scope=profile email 15 | 16 | security.oauth2.resource.userInfoUri =https://www.googleapis.com/userinfo/v2/me 17 | security.oauth2.resource.preferTokenInfo= false -------------------------------------------------------------------------------- /34 SecureApp/src/main/webapp/home.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | Welcome Aliens.. 11 | 12 | -------------------------------------------------------------------------------- /34 SecureApp/src/test/java/com/telusko/secureapp/SecureAppApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.telusko.secureapp; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SecureAppApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /4 SpringDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /4 SpringDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /4 SpringDemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /4 SpringDemo/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /4 SpringDemo/src/main/java/com/telusko/SpringDemo/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Alien { 4 | public void code() 5 | { 6 | System.out.println("Im Coding.."); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /4 SpringDemo/src/main/java/com/telusko/SpringDemo/App.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import org.springframework.beans.factory.BeanFactory; 4 | import org.springframework.beans.factory.xml.XmlBeanFactory; 5 | import org.springframework.context.ApplicationContext; 6 | import org.springframework.context.support.ClassPathXmlApplicationContext; 7 | import org.springframework.core.io.FileSystemResource; 8 | 9 | public class App 10 | { 11 | public static void main( String[] args ) 12 | { 13 | // BeanFactory factory = new XmlBeanFactory(new FileSystemResource("spring.xml")); 14 | ApplicationContext factory = new ClassPathXmlApplicationContext("spring.xml"); 15 | Alien obj = (Alien)factory.getBean("alien"); 16 | obj.code(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /4 SpringDemo/src/main/java/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /4 SpringDemo/src/test/java/com/telusko/SpringDemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /4 SpringDemo/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /4 SpringDemo/target/classes/META-INF/maven/com.telusko/SpringDemo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 15:21:20 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\ApplicationContext_11\\SpringDemo 4 | m2e.projectName=4 SpringDemo 5 | groupId=com.telusko 6 | artifactId=SpringDemo 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /4 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/4 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class -------------------------------------------------------------------------------- /4 SpringDemo/target/classes/com/telusko/SpringDemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/4 SpringDemo/target/classes/com/telusko/SpringDemo/App.class -------------------------------------------------------------------------------- /4 SpringDemo/target/classes/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /4 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/4 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class -------------------------------------------------------------------------------- /5 SpringDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /5 SpringDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /5 SpringDemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /5 SpringDemo/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /5 SpringDemo/src/main/java/com/telusko/SpringDemo/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Alien 4 | { 5 | int age; 6 | 7 | public Alien() { 8 | System.out.println("Alien Object Created.."); 9 | } 10 | public void code() 11 | { 12 | System.out.println("Im Coding.."); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /5 SpringDemo/src/main/java/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /5 SpringDemo/src/test/java/com/telusko/SpringDemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /5 SpringDemo/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /5 SpringDemo/target/classes/META-INF/maven/com.telusko/SpringDemo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 15:23:12 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Spring Container_12\\SpringDemo 4 | m2e.projectName=5 SpringDemo 5 | groupId=com.telusko 6 | artifactId=SpringDemo 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /5 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/5 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class -------------------------------------------------------------------------------- /5 SpringDemo/target/classes/com/telusko/SpringDemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/5 SpringDemo/target/classes/com/telusko/SpringDemo/App.class -------------------------------------------------------------------------------- /5 SpringDemo/target/classes/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /5 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/5 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class -------------------------------------------------------------------------------- /6 SpringDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /6 SpringDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /6 SpringDemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /6 SpringDemo/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /6 SpringDemo/src/main/java/com/telusko/SpringDemo/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Alien 4 | { 5 | int age; 6 | 7 | public Alien() { 8 | System.out.println("Alien Object Created.."); 9 | } 10 | public void code() 11 | { 12 | System.out.println("Im Coding.."); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /6 SpringDemo/src/main/java/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /6 SpringDemo/src/test/java/com/telusko/SpringDemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /6 SpringDemo/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /6 SpringDemo/target/classes/META-INF/maven/com.telusko/SpringDemo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 15:24:36 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Singleton Vs. Prototype_13\\SpringDemo 4 | m2e.projectName=6 SpringDemo 5 | groupId=com.telusko 6 | artifactId=SpringDemo 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /6 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/6 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class -------------------------------------------------------------------------------- /6 SpringDemo/target/classes/com/telusko/SpringDemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/6 SpringDemo/target/classes/com/telusko/SpringDemo/App.class -------------------------------------------------------------------------------- /6 SpringDemo/target/classes/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /6 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/6 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class -------------------------------------------------------------------------------- /7 SpringDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /7 SpringDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /7 SpringDemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /7 SpringDemo/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /7 SpringDemo/src/main/java/com/telusko/SpringDemo/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Alien 4 | { 5 | int age; 6 | 7 | public Alien() { 8 | System.out.println("Alien Object Created.."); 9 | } 10 | 11 | public int getAge() { 12 | return age; 13 | } 14 | public void setAge(int age) { 15 | System.out.println("Age Assigned"); 16 | this.age = age; 17 | } 18 | 19 | public void code() 20 | { 21 | System.out.println("Im Coding.."); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /7 SpringDemo/src/main/java/com/telusko/SpringDemo/App.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import org.springframework.beans.factory.BeanFactory; 4 | import org.springframework.beans.factory.xml.XmlBeanFactory; 5 | import org.springframework.context.ApplicationContext; 6 | import org.springframework.context.support.ClassPathXmlApplicationContext; 7 | import org.springframework.core.io.FileSystemResource; 8 | 9 | public class App 10 | { 11 | public static void main( String[] args ) 12 | { 13 | // BeanFactory factory = new XmlBeanFactory(new FileSystemResource("spring.xml")); 14 | 15 | ApplicationContext factory = new ClassPathXmlApplicationContext("spring.xml"); 16 | 17 | Alien obj1 = (Alien)factory.getBean("alien"); 18 | obj1.code(); 19 | 20 | System.out.println(obj1.getAge()); 21 | 22 | 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /7 SpringDemo/src/main/java/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /7 SpringDemo/src/test/java/com/telusko/SpringDemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /7 SpringDemo/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /7 SpringDemo/target/classes/META-INF/maven/com.telusko/SpringDemo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 15:25:40 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Setter Injection_14\\SpringDemo 4 | m2e.projectName=7 SpringDemo 5 | groupId=com.telusko 6 | artifactId=SpringDemo 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /7 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/7 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class -------------------------------------------------------------------------------- /7 SpringDemo/target/classes/com/telusko/SpringDemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/7 SpringDemo/target/classes/com/telusko/SpringDemo/App.class -------------------------------------------------------------------------------- /7 SpringDemo/target/classes/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /7 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/7 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class -------------------------------------------------------------------------------- /8 SpringDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /8 SpringDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /8 SpringDemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /8 SpringDemo/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /8 SpringDemo/src/main/java/com/telusko/SpringDemo/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Alien 4 | { 5 | private int age; 6 | private Laptop laptop; 7 | 8 | public Alien() { 9 | System.out.println("Alien Object Created.."); 10 | } 11 | 12 | public Alien(int age) { 13 | this.age = age; 14 | } 15 | 16 | public int getAge() { 17 | return age; 18 | } 19 | public void setAge(int age) { 20 | System.out.println("Age Assigned"); 21 | this.age = age; 22 | } 23 | 24 | 25 | public Laptop getLaptop() { 26 | return laptop; 27 | } 28 | 29 | public void setLaptop(Laptop laptop) { 30 | this.laptop = laptop; 31 | } 32 | 33 | 34 | public void code() 35 | { 36 | System.out.println("Im Coding.."); 37 | laptop.compile(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /8 SpringDemo/src/main/java/com/telusko/SpringDemo/App.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class App 7 | { 8 | public static void main( String[] args ) 9 | { 10 | 11 | ApplicationContext factory = new ClassPathXmlApplicationContext("spring.xml"); 12 | 13 | Alien obj1 = (Alien)factory.getBean("alien"); 14 | obj1.code(); 15 | 16 | System.out.println(obj1.getAge()); 17 | 18 | 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /8 SpringDemo/src/main/java/com/telusko/SpringDemo/Laptop.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Laptop 4 | { 5 | public void compile() 6 | { 7 | System.out.println("Code Compiled"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /8 SpringDemo/src/main/java/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /8 SpringDemo/src/test/java/com/telusko/SpringDemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /8 SpringDemo/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /8 SpringDemo/target/classes/META-INF/maven/com.telusko/SpringDemo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 15:27:43 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Ref Attribute_15\\SpringDemo 4 | m2e.projectName=8 SpringDemo 5 | groupId=com.telusko 6 | artifactId=SpringDemo 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /8 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/8 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class -------------------------------------------------------------------------------- /8 SpringDemo/target/classes/com/telusko/SpringDemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/8 SpringDemo/target/classes/com/telusko/SpringDemo/App.class -------------------------------------------------------------------------------- /8 SpringDemo/target/classes/com/telusko/SpringDemo/Laptop.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/8 SpringDemo/target/classes/com/telusko/SpringDemo/Laptop.class -------------------------------------------------------------------------------- /8 SpringDemo/target/classes/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /8 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/8 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class -------------------------------------------------------------------------------- /9 SpringDemo/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /9 SpringDemo/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 3 | org.eclipse.jdt.core.compiler.compliance=1.5 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.5 9 | -------------------------------------------------------------------------------- /9 SpringDemo/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /9 SpringDemo/.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /9 SpringDemo/src/main/java/com/telusko/SpringDemo/Alien.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Alien 4 | { 5 | private int age; 6 | private Laptop laptop; 7 | 8 | // public Alien() { 9 | // System.out.println("Alien Object Created.."); 10 | // } 11 | 12 | public Alien(int age) { 13 | this.age = age; 14 | } 15 | 16 | public Laptop getLaptop() { 17 | return laptop; 18 | } 19 | 20 | public void setLaptop(Laptop laptop) { 21 | this.laptop = laptop; 22 | } 23 | 24 | public int getAge() { 25 | return age; 26 | } 27 | public void setAge(int age) { 28 | System.out.println("Age Assigned"); 29 | this.age = age; 30 | } 31 | 32 | 33 | public void code() 34 | { 35 | System.out.println("Im Coding.."); 36 | laptop.compile(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /9 SpringDemo/src/main/java/com/telusko/SpringDemo/App.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class App 7 | { 8 | public static void main( String[] args ) 9 | { 10 | 11 | ApplicationContext factory = new ClassPathXmlApplicationContext("spring.xml"); 12 | 13 | Alien obj1 = (Alien)factory.getBean("alien"); 14 | obj1.code(); 15 | 16 | System.out.println(obj1.getAge()); 17 | 18 | 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /9 SpringDemo/src/main/java/com/telusko/SpringDemo/Laptop.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | public class Laptop 4 | { 5 | public void compile() 6 | { 7 | System.out.println("Code Compiled"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /9 SpringDemo/src/main/java/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /9 SpringDemo/src/test/java/com/telusko/SpringDemo/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.telusko.SpringDemo; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /9 SpringDemo/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: Telusko 3 | Build-Jdk: 12.0.2 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /9 SpringDemo/target/classes/META-INF/maven/com.telusko/SpringDemo/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri Aug 30 15:29:07 IST 2019 3 | m2e.projectLocation=C\:\\Users\\Telusko\\Desktop\\Spring Course udemy\\Course\\Constructor Injection_16\\SpringDemo 4 | m2e.projectName=9 SpringDemo 5 | groupId=com.telusko 6 | artifactId=SpringDemo 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /9 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/9 SpringDemo/target/classes/com/telusko/SpringDemo/Alien.class -------------------------------------------------------------------------------- /9 SpringDemo/target/classes/com/telusko/SpringDemo/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/9 SpringDemo/target/classes/com/telusko/SpringDemo/App.class -------------------------------------------------------------------------------- /9 SpringDemo/target/classes/com/telusko/SpringDemo/Laptop.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/9 SpringDemo/target/classes/com/telusko/SpringDemo/Laptop.class -------------------------------------------------------------------------------- /9 SpringDemo/target/classes/spring.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /9 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/navinreddy20/Spring_Course/2638d1cf86ae5fd6d6d8615b3eda83714ebd7f2f/9 SpringDemo/target/test-classes/com/telusko/SpringDemo/AppTest.class --------------------------------------------------------------------------------