Code Monkey home page Code Monkey logo

spring-framework-demo's Introduction

Spring-Framework-Demo

This project is useful for starting to Spring Framework.

CREATE PROJECT

  1. Go to https://start.spring.io/
  2. Select Project: Maven Project, Language: Java, Spring Boot: 2.1.6, Packaging: Jar Java: 11 Dependencies: Spring Web Starter Lombok Spring Data JPA Spring Boot DevTools
  3. Generate the project

SET CONFIGURATIONS

  1. Open CMD and run 'mvnw spring-boot:run' in project files

  2. Open 'pom.xml' and insert to code

     <dependency>
         <groupId>com.oracle</groupId>
         <artifactId>ojdbc8</artifactId>
         <version>12.2.0.1</version>
     </dependency>
    
  3. Open 'application.properties' and insert to code

         # spring
         spring.devtools.restart.poll-interval=4000
         server.servlet.context-path=/api
    
         # logging
         logging.level.org.hibernate.SQL=debug
    
         # oracle
         spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialect
         spring.datasource.url= jdbc:oracle:thin:@localhost:1521/furkan.project.com
         spring.datasource.username= USER_NAME
         spring.datasource.password= PSW
         spring.datasource.driverClassName=oracle.jdbc.OracleDriver
    
  4. Create a directory named 'lib' in src

  5. Insert ojdbc8.jar to 'lib' directory

  6. Run to Terminal 'mvnw install:install-file -Dfile=src/lib/ojdbc8.jar -DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=12.2.0.1 -Dpackaging=jar'

spring-framework-demo's People

Contributors

furkanuyanik avatar

Stargazers

Muhammed Akgümüş avatar  avatar EMRE ARIĞ avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.