Coder Social home page Coder Social logo

spring-boot-web-jsp-example's Introduction

Sample Spring Boot Web Application with JSP

Building and running

./mvnw clean spring-boot:run

or

./mvnw clean package
java -jar target/jsp-boot-tst.war

Verification:

curl -i -I http://localhost:8080/                                                                                      śro, 29 sie 2018, 14:36:14 
HTTP/1.1 200 

spring-boot-web-jsp-example's People

Contributors

mariuszs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

spring-boot-web-jsp-example's Issues

Unable to get the all the AWS RDS instances by using java code, i am facong this issue while hit the service

image

I am writing the code below if any mistakes please let me know.

@RequestMapping("getDataPoint")
public List getReadReplicaEndpoints() {
List endpoints = null;

	//DescribeDBInstancesResult result = rds.describeDBInstances(new DescribeDBInstancesRequest().withDBInstanceIdentifier(dbInstanceId));
	
	AmazonRDS rdsClient = AmazonRDSClient.builder().withCredentials(new DefaultAWSCredentialsProviderChain())
			.withRegion(Regions.US_EAST_1).build();
	DescribeDBInstancesResult response = rdsClient.describeDBInstances(new DescribeDBInstancesRequest());

	// If the master exist and has any read replicas
	if(response.getDBInstances().size() == 1 && response.getDBInstances().get(0).getReadReplicaDBInstanceIdentifiers().size() > 0) {
		endpoints = new ArrayList<Endpoint>();
		for(String readReplicaId : response.getDBInstances().get(0).getReadReplicaDBInstanceIdentifiers()) {
			DBInstance rrInstance = rdsClient.describeDBInstances(new DescribeDBInstancesRequest().withDBInstanceIdentifier(readReplicaId)).getDBInstances().get(0);
			if (rrInstance.getDBInstanceStatus().equals("available")) {
				endpoints.add(rrInstance.getEndpoint());
			}
		}
		if(endpoints.size() == 0) {
			endpoints = null;
		}
		
	}
	
	return endpoints;
}

Upgrade to 1.3.5 result in Whitelabel Error Page

If upgrade the pom to use spring boot 1.3.5 then when opening the application it is displayed a page with following content:

_Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Jun 23 22:41:46 CEST 2016
There was an unexpected error (type=Not Found, status=404).
No message available_

Any idea how it can be solved?

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.