Giter VIP home page Giter VIP logo

fullstack-kotlin's People

Contributors

gildegoma avatar international avatar xantier 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fullstack-kotlin's Issues

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

Using your Section-1-Video-1 branch to follow your course on packt, clone the repo and any attempts to build/clean/etc. do this:

10:02 $ gradlew clean
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true -Duser.timezone=UTC
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
✘-1 ~/mydev/work/fullstack-kotlin [Section-1-Video-1|…4] ```

Google hasn't been much help on correcting this, in need of some assistance to get unblocked.

Repository error (could not resolve matching constructor)

Hi,

Thanks for this course, it is very informative.

I've been working on your master branch trying to update to the most recent versions of everything. I think I'm there with Kotlin 1.2.21 and SpringBoot 2.0.0.RC1.

I've also switched to an embedded H2 database and added a 'data.sql' to my resources to load the user and role.

The problem I'm seeing is that at startup time, after the sql script runs I get an exception.

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.packtpub.UserRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)

Any hints on how to solve this since the implementation of the repository is generated by Spring?

Update to 1.2 Kotlin

I keep seeing errors when compiling with Kotlin 1.2.

Example, take Section 2, Video 3.

In Config.kt

beans{ bean { ViewRoutes(it.ref())} }(ctx)

This will give us an error:

Expression 'beans{ bean { ViewRoutes(it.ref())} }' of type 'BeanDefinitionDsl' cannot be invoked as a function. The function 'invoke()' is not found

Next, if we change the above method to use the "initialize" method instead of invoke to fix the compilation error like so:

beans{ bean { ViewRoutes(it.ref())} }.initialize(ctx)

We get a different compilation error

Unresolved reference: it

Its very hard to know what the fix is especially when we are going up a learning curve.

Thank you for your course and hope to know what the fixes are.

Question: are the files for react + redux still required

Hi Jussi, many thanks for your video course at packt, one of the beest I had so far, learnt a lot, not only about kotlin, but also gradle, springboot and module-architecture.

I am trying to adopt your layout to my own app and wonder: the files in frontend/src/main/kotlin/{react, redux} seem pretty generic. Is it still the case today that I have to manually create and maintain thos files in my kotlin/js frontend or are there libs I can just import with the same behavior?

Thanks
Jan

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.