Giter Site home page Giter Site logo

hantsy / angularjs-springmvc-sample-boot Goto Github PK

View Code? Open in Web Editor NEW
315.0 315.0 142.0 447 KB

A RESTful sample using Spring Boot, Spring MVC, Spring Data and Angular/Bootstrap.

Home Page: https://www.gitbook.com/book/hantsy/build-a-restful-app-with-spring-mvc-and-angularjs/details

License: Apache License 2.0

Java 59.58% CSS 0.25% HTML 21.95% JavaScript 17.80% Dockerfile 0.42%
angularjs bootstrap hibernate jpa lombok nodejs rest spring spring-boot spring-data spring-data-jpa spring-mvc swagger

angularjs-springmvc-sample-boot's Introduction

Hantsy Bai(@hantsy)

hantsy

I'm Hantsy - a freelancer from China. Previously I worked with diverse teams around the world and helped numerous customers with professional service, not limited to coaching the team members, cooking startup POCs and delivering large-scale distributed applications.

Getting in touch

angularjs-springmvc-sample-boot's People

Contributors

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

angularjs-springmvc-sample-boot's Issues

Missing repo

Hi all
I tried to build the project but Maven was complaining about a missing artefact "swagger2markup-spring-restdocs-ext".
I just added the repo to pom.xml and everything was fine:

     <repository>
        <id>jcentral</id>
        <name>bintray</name>
        <url>http://jcenter.bintray.com</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>

Thanks for the cool project.

Regards, S.

[Request method 'GET' not supported]

After installing the project, i get:

2017-03-14 12:03:24.183 DEBUG 12120 --- [nio-9000-exec-4] c.h.r.s.s.SimpleUserDetailsServiceImpl : found by username @admin 2017-03-14 12:03:24.298 DEBUG 12120 --- [nio-9000-exec-4] c.h.r.s.api.RestExceptionHandler : handling exception... 2017-03-14 12:03:24.298 WARN 12120 --- [nio-9000-exec-4] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by Handler execution: org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported

When i try to login

Unable to run gulp serve

Was following instructions to run the source, was able to run Spring MVC on 9000 but angular gulp is failing.

Just wondering why gulp and not the simple neat "ng serve"

Below is the error:
image

and the CLI versions:
image

exec-maven-plugin can not run gulp when build in windows

when run this demo in windows , mvn spring-boot:run -Dstatic-ui ,it gets an error :
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (g ulp-build) on project angularjs-springmvc-sample-boot: Command execution failed. Cannot run program "C:\Users\HAP\AppData\Roaming\npm\gulp" (in directory "G:\IT \Java_Samples\angularjs with spring\angularjs-springmvc-sample-boot-master"): Cr eateProcess error=193, %1 不是有效的 Win32 应用程序。 -> [Help 1]
因为 npm目录下有两个gulp和 gulp.cmd文件,当运行exec-maven-plugin插件的gulp命令时会先找到gulp文件而不是gulp.cmd.在windows系统下gulp文件是不能被执行的,换成使用groupId:com.github.eirslett artifactId:frontend-maven-plugin这个插件可以满足跨平台执行 mvn spring-boot:run -Dstatic-ui 的需求.

Model Post_ don't exist

Review in file with path ngularjs-springmvc-sample-boot/src/main/java/com/hantsylabs/restexample/springmvc/repository/PostSpecifications.java. The model Post_.java don't exist.
(import com.hantsylabs.restexample.springmvc.domain.Post_)

no setting.xml for docker deploy

hi,bro
glad & honor to study with this project ,when I try to deploy with docker , I found there is no setting.xml in project, however ,the Dockerfile cmd with this file, I'm new to docker and nearly tow years far away from java. I can't handle with this, looking forward your help!

Error in BlogService.java savePost method

In the file https://github.com/hantsy/angularjs-springmvc-sample-boot/blob/master/src/main/java/com/hantsylabs/restexample/springmvc/service/BlogService.java, in the savePost method, on line 68, you currently have the code:

return DTOUtils.map(post, PostDetails.class);

That should actually be:

return DTOUtils.map(saved, PostDetails.class);

That line (line 68) in the savePost method returns the PostDetails object mapped by the Post object which was returned from the save(post) call earlier (line 62), which created a new Post in the database and returned the newly created Post object to be stored in the Post saved variable. That saved variable should be what is mapped to PostDetails.class and returned on line 68, not the original post variable.

@hantsy

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.