All Projects → scotthaleen → clojure-spring-cloud

scotthaleen / clojure-spring-cloud

Licence: other
Clojure Spring Cloud Sample

Programming Languages

clojure
4091 projects
shell
77523 projects

Projects that are alternatives of or similar to clojure-spring-cloud

Spring Framework 4 Reference
Chinese translation of the Spring Framework 4.x Reference Documentation (https://docs.spring.io/spring/docs/4.3.13.RELEASE/spring-framework-reference/html/) .中文翻译《Spring Framework 4.x参考文档》
Stars: ✭ 1,478 (+4378.79%)
Mutual labels:  springframework
spring-script-repositories
Spring library for script execution repositories management
Stars: ✭ 31 (-6.06%)
Mutual labels:  springframework
online-shopping
This is an online shopping project using Spring Boot,Spring web-flow, Spring Rest Services and Hibernate. In this project we also used Spring Security with java and annotation configuration
Stars: ✭ 34 (+3.03%)
Mutual labels:  springframework
Sfg Blog Posts
Source code examples for blog posts
Stars: ✭ 125 (+278.79%)
Mutual labels:  springframework
small-rpc
🔥基于netty和hessian的一个轻量级RPC调用框架
Stars: ✭ 21 (-36.36%)
Mutual labels:  springframework
Spring
Personal notes of preparation to Spring 5 Professional Certification
Stars: ✭ 35 (+6.06%)
Mutual labels:  springframework
Springboard
Spring Boot based production grade starter kit.
Stars: ✭ 59 (+78.79%)
Mutual labels:  springframework
spring-data-jdbc-repository
Spring Data JDBC generic DAO implementation in Java (more up-to-date fork)
Stars: ✭ 123 (+272.73%)
Mutual labels:  springframework
thinking-in-spring
Spring source code reading
Stars: ✭ 105 (+218.18%)
Mutual labels:  springframework
kotlin-postgres
A Simple CRUD API using Spring Boot Application using PostgreSQL Database
Stars: ✭ 20 (-39.39%)
Mutual labels:  springframework
Shopizer
Shopizer java e-commerce software
Stars: ✭ 2,541 (+7600%)
Mutual labels:  springframework
Spring Framework Petclinic
A Spring Framework application based on JSP, Spring MVC, Spring Data JPA, Hibernate and JDBC
Stars: ✭ 251 (+660.61%)
Mutual labels:  springframework
extdirectspring-demo
Sample applications for ExtDirectSpring
Stars: ✭ 18 (-45.45%)
Mutual labels:  springframework
Ssm Demo
🍌Spring+SpringMVC+Mybatis+easyUI实现简单的后台管理系统
Stars: ✭ 1,639 (+4866.67%)
Mutual labels:  springframework
gro-light-automation
A raspberry pi project to automate hydroponics with relays and data sensors through a web application
Stars: ✭ 44 (+33.33%)
Mutual labels:  springframework
Spring Cloud Flycloud
🔥🔥🔥FlyClould 微服务实战项目框架,在该框架中,包括了用 Spring Cloud 构建微服务的一系列基本组件和框架,对于后台服务框架的搭建有很大的参考价值,大家可以参考甚至稍加修改可以直接应用于自己的实际的项目开发中,该项目没有采用Maven进行项目构建,Maven通过xml进行依赖管理,导致整个配置文件太过臃肿,另外灵活性也不是很强,所以我采用Gradle进行项目构建和依赖管理,在FlyTour项目中我们见证了Gradle的强大,通过简单的一些配置就可以轻松的实现组件化的功能。该项目共有11个Module工程。其中10个位微服务工程,这10个微服务工程构成了一个完整的微服务系统,微服务系统包含了8个基础服务,提供了一整套微服务治理功能,他们分别是配置中心module_c…
Stars: ✭ 1,514 (+4487.88%)
Mutual labels:  springframework
tutorials
Code samples for tutorials blog
Stars: ✭ 49 (+48.48%)
Mutual labels:  springframework
Spring5Certification
Spring Certification: This repository contains my examples and some best references to prepare the Spring 5 certification
Stars: ✭ 30 (-9.09%)
Mutual labels:  springframework
opa-java-spring-client
Simple Spring client for working with the Open Policy Agent
Stars: ✭ 19 (-42.42%)
Mutual labels:  springframework
docker-api-graphql
GraphQL API wrapper around the Docker Remote API. SpringBoot-based app, written in Kotlin
Stars: ✭ 13 (-60.61%)
Mutual labels:  springframework

Spring Cloud

Actions Status

Proof of concept Clojure Implementation of Spring Boot Getting Started

This project was created against 'Spring 2.2.5.RELEASE'

Setup

Spring Boot uses its own JarLauncher org.springframework.boot.loader.JarLauncher Maven and Gradle have plugins to package the jar for you, Leiningen does not. So I had to create a custom lein plugin.

Goto - [https://github.com/scotthaleen/lein-spring-boot-jar] and install the plugin locally to compile this project.

Note: for history I have left the custom bash script (./bin/package.sh) used before I created the lein plugin.

Compile

lein spring-boot-jar

Run

Choose a profile either dev and prod and specify it using the spring.profiles.active parameter. There is no default (intentionally) the application will fail to start when no valid profile is not specified.

$ java -jar -Dspring.profiles.active=dev target/boot-spring-cloud-0.1.0-SNAPSHOT.jar
16:04:58.120 [main] INFO spring.cloud.App -
   ____ _       _
  / ___| | ___ (_)_   _ _ __ ___
 | |   | |/ _ \| | | | | '__/ _ \
 | |___| | (_) | | |_| | | |  __/
  \____|_|\___// |\__,_|_|  \___|
              |__/



  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.5.RELEASE)
...


$ curl localhost:8080
Greetings from Clojure!%

$  curl http://localhost:8080/greeting
{"id":1,"content":"Hello, world!"}%

$ curl "http://localhost:8080/greeting?name=User"
{"id":2,"content":"Hello, User!"}%

# Depending on -Dspring.profiles.active={dev,prod}
# Without an active profile the server will fail to start
$ curl http://localhost:8080/env
dev

TODO

  • Spring Boot Lein Package Plugin
  • Spring Profiles example
  • Spring Autowiring magic

Repobeats

Alt

License

Copyright © 2022

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].