Giter Club home page Giter Club logo

jdnd's Introduction

JDND

This is a DEPRECATED repository for the Java Developer Nanodegree (ND035) program. The current repository has been split into the separate repositories associated with the individual courses in the Nanodegree. Therefore, go to the suitable new repository, as mentioned below:

If you are enrolled in ND035 v1:

If you are enrolled in ND035 v2:

  • Course 2 Spring Boot Basics:
  1. nd035-c1-spring-boot-basics-examples
  2. nd035-c1-spring-boot-basics-project-starter

jdnd's People

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jdnd's Issues

Freemarker Template

The extension for free marker template file needs to be updated to (.ftlh ) for Spring Boot 2.2.x applications

fileupload error

after uploading a small file 26kB, the webpage returns
Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.
Sun Nov 03 11:05:59 CST 2019
There was an unexpected error (type=Not Found, status=404).
No message available

while at the intellij console
2019-11-03 11:03:57.656 INFO 30032 --- [ main] c.e.s.SpringBootFileUploadApplication : No active profile set, falling back to default profiles: default
2019-11-03 11:04:00.013 INFO 30032 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2019-11-03 11:04:00.020 INFO 30032 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2019-11-03 11:04:00.021 INFO 30032 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.27]
2019-11-03 11:04:00.076 INFO 30032 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2019-11-03 11:04:00.077 INFO 30032 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2364 ms
2019-11-03 11:04:00.177 INFO 30032 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2019-11-03 11:04:00.213 INFO 30032 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html]
2019-11-03 11:04:00.271 INFO 30032 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2019-11-03 11:04:00.274 INFO 30032 --- [ main] c.e.s.SpringBootFileUploadApplication : Started SpringBootFileUploadApplication in 3.034 seconds (JVM running for 3.603)
2019-11-03 11:04:20.426 INFO 30032 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2019-11-03 11:04:20.427 INFO 30032 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2019-11-03 11:04:20.432 INFO 30032 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 4 ms

No particular error were identified, and I could not find the project in this repo called spring boot file upload to compare, which is quite unfortunate. What's the source of the problem. I'm sure it's not the size of the upload file, since I've encountered this problem and the console returned an error message for the size. I replace the large file with a tiny one so that the error message didn't come up again. However the webpage became what's described above。

Binary search solution problem

For the binary search solution (), the binary search algorithm is not working finding the first and the last numbers.
I propose this approach.

`public static int findTarget(int[] arr, int target) {
if (arr.length == 0) return -1;

    int start = 0, end = arr.length;
    while (start<=end) {
        int mid = (start+end)/2;
        if(arr[mid]==target)
            return mid;
        else if(arr[mid]<target){
            start=mid+1;
        }
        else {
            end=mid-1;
        }
    }
    return -1;
}`

PermutationDemo generates duplicate

The PermutationDemo.java program will lead to duplicates. A quick fix is to do the inner loop on the clone of the array.

    public static void printPermutn(int[] arr, int index) {
        int len = arr.length;

        if (index == (len-1)) {
            for(int i=0; i<len; i++) System.out.print(arr[i]);
            System.out.println();
        } else {
            int[] a = arr.clone();
            for(int i=index; i<len; i++) {
                int t = a[i];
                a[i] = a[index];
                a[index] = t;
                printPermutn(a, index+1);
            }
        }
    }

GraphQL error

I get this error when trying to access it from http://localhost:8080/graphiql
{ "timestamp": "2019-12-16T10:31:24.110+0000", "status": 404, "error": "Not Found", "message": "No message available", "path": "/graphql" }

when I try to access from http://localhost:8080/graphql/schema.json

Whitelabel Error Page

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

Mon Dec 16 12:45:56 CAT 2019
There was an unexpected error (type=Not Found, status=404).
No message available

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.