spring-ddd-bank | sample project following Domain Driven Design | Object-Relational Mapping library
kandi X-RAY | spring-ddd-bank Summary
kandi X-RAY | spring-ddd-bank Summary
In this project I am trying to apply principles of Domain Driven Design. In contrary to full-blown DDD examples on the web I am applying here some simplifications. This sample application is used for a course on Software Engineering at Beuth University of Applied Sciences Berlin. Detailed version indications you can find in the file pom.xml. By mvn clean test all necessary libraries will be fetched, the project will be compiled, exception message texts will be collected and the test suite will be executed. After this is working you can import the Maven project into your Java IDE (Spring Tool Suite is recommended, as AspectJ weaving is needed for the compile phase). You can run the application (a REST server) in your IDE by running class de.beuth.knabe.spring_ddd_bank.Application or on the command line after mvn package by java -jar target/spring-ddd-bank-0.1-SNAPSHOT.jar. In the last lines of the log you will see the number of the port (usually 8080), on which the server will listen. You can stop it by typing .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Adds a new account manager to the bank account manager
- Queries an account
- Adds the given client to the manager
- Start the Derby network server
- Starts the Derby network server
- Set Derby system properties
- Depos deposit of a given amount of money
- Returns the sum of two amounts
- Deposit a given amount
- Creates two random clients
- Generate a random birth date for a client
- Creates a new client
- Report an exception
- Checks if the exception is violation
- Convert the given exception to the response status
- Retrieve a list of accounts
- Return a report for all accounts
- Start the Downloader
- Downloads a file from an URL
- Delete a client
- Creates a new client from the bank resource
- Display the rest of the REST API
- Creates a new account
- Compares two Numbers
- Returns all clients
- Configure the user details
spring-ddd-bank Key Features
spring-ddd-bank Examples and Code Snippets
Community Discussions
Trending Discussions on spring-ddd-bank
QUESTION
So I am making a Restful Webservice with the Springtoolsuite and I am making a Rest Client as well. I am at a point at which I can run the service and have both Postman give me the results I expect as well as run the internal Browser of Spring and have the proper things happening.
However if I then load the html file outside of Springs browser im getting the typical CORS errors of "CORS request did not succeed" and "CORS preflight channel did not succeed" in Mozilla and in Chrome I get a 403 for OPTIONS and "access to XMLHttpRequest at 'http://localhost:8080/.." from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource." which is also a CORS issue.
localhost:8080 is my choice of URL because Apache Tomcat starts the service on this port when I run the project as a Spring Boot App.
What I am unsure of now is how to find out wether I am making poorly worded requests in my Rest Client or wether I have an issue in my servercode for example supposedly the error can come from preflighting multiple times and I am unsure wether I might be doing that.
First the servercode:
...ANSWER
Answered 2018-Nov-24 at 06:35Still not entirely sure how to test which one doesn't work but I did find the solution. I implemented 2 changes either one of which probably did the trick:
For one I added the
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-ddd-bank
You can use spring-ddd-bank like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the spring-ddd-bank component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page