I wanted to learn how to make a simple Spring+Hibernate+MySQL CRUD.
I found a tutorial. I wanted to run it on my PC first(to check if it's working and then learn what particular lines do). I downloaded the zip file and changed couple of things like name of the package or name of the database, the Spring/Hibernate version and so on.
Unfortunately the program is not working.
Of course there is a possibility that the tutorial is somewhere wrong but I bet that it's me not the tutorial that screwed something up.
If anybody have some free time I will really appreciate any help :)
This is a link to a github repo where I put code.
I use Eclipse and Tomcat 9.
Thank you in advance!
There is a lot easier way to get started with Spring completly from a scratch.
It's called Spring Boot and it is composed of an embedded servlet engine (Tomcat) and takes care of configuration of almost everything.
It doesn't require XML configuration which is a blessing and makes you feel like 2017, not 2000.
I found this video tutorial a very useful one and I can recommend it to you:
https://www.youtube.com/watch?v=vgPkUVF862g
Also, this series of video tutorials is excellent and explains everything about Spring MVC and Spring Boot, but it seems that first video is missing..
https://www.youtube.com/watch?v=C3ZrOj4unss
Related
I am quite new to java and trying to start learning Java spring boot frame work with Object relational Mapper . Just got one sample project to study. But I am not able to understand components and its uses. I have attached an image. I would highly appreciate for a small intro and tips to work further in this project. Currently I am not able to understand well about different component like config ,controller ,domain , service and and repository used in this project.
source code : https://github.com/zlict/m223-punchclock
I've as objective to create a simple "Hello World" as an LTI app. To do so, I would like to use JSP, so I look for a Java implementation of LTI to make it.
After looking for it, I found this github repository: https://github.com/IMSGlobal/basiclti-util-java
Where they've created some utils implementating LTI 1.0. The only problem about it, it's that I can't found any example nor documentation about how to use it.
The only way I think I can understand a bit about how to use it, is looking the Test classes they've created, but this only helps me in the methods way, and leaves me still without knowing how must I create the "app" (servlet? JSP? any special methods? What should be used first?
I'm a bit lost with all this. Can anyone give my a piece of advice or a way to start?
Thank you in advance
(PS: tried to tag it as LTI, but I've no reputation enough..)
I'm one of the maintainers of that project, and I'm glad you're interested in LTI!
There are many different aspects of LTI, but the main thing people are referencing when they talk about LTI is the oauth launch. You can read more about that here.
Here's a sample java lti app I wrote with the spring framework which uses basiclti-util-java, which might get you started.
We made our own api for airbrake.io in java. This works fine but airbrake is displaying parameters and stacktraces in some kind of Rails style. This is somewhat annoying. Anyone know of similar services made for java?
Example of how data is displayed:
Parameters
{"controller"=>"", "action"=>""}
Stacktrace
/testapp/app/models/user.rb:53:in `public'
/testapp/app/controllers/users_controller.rb:14:in `index'
UPDATE 2015-02-13: This service no longer exists. The GitHub account linked below is gone, as is the company website.
Have you tried using Coalmine https://github.com/coalmine/coalmine_java Its meant to be used with the Coalmine service: https://getcoalmine.com/
I work at Coalmine and we have been using this internally for some time now. We just open sourced the java connector this week and I would be happy to help you get started with it. You can send me an email at brad#builtfromsource.com
Have you tried using http://code.google.com/p/hoptoad/ . It's a little out of date, but it should just need to update an endpoint to http://api.airbrake.io .
A quick google lead me to http://logdigger.com/ which is designed specific for JAVA specific sites.
I work at Airbrake, and I would be happy to work with you to make our site more JAVA friendly. Please get in touch ben#airbrake.io, and I'll see how we can better display java specific information.
Just adding to the others suggested here, but Raygun (http://raygun.io) has first class support for Java.
Read more here: http://raygun.io/java
I work for Mindscape who built Raygun so can answer any questions you may have about it: jd#mindscape.co.nz. We already have a large number of organizations using Raygun with their Java apps, although Raygun does support other platforms (.NET, Node, Rails, PHP, etc)
I have an issue and I cannot solve it, even if I know that Maven deals with it. I have been looking for a solution for a long time and I cannot find it anywhere. I even tried to find some Maven tutorials but I haven't found anything yet.
So the problem appears when I want to deploy my application to Tomcat. Everything goes smooth until I want to modify something in it. It has a lot of images, files, video files, because it's a small portal. Every time I want to modify something I have to backup all this stuff in my computer and only after that i can run the undeploy process so that I can upload the new .WAR and it gets very unconfortable as the data grows. I would be very thankful if someone has a solution to this problem. My projects are performed in Struts/Struts2+Spring+Hibernate. Thank you
Consider using a content repository for images and external resources; look at LifeRay or Alfresco or Sling, or Communique for solutions in this space, or look at JackRabbit for implementing the client of a repository yourself. It's actually pretty easy, and very scalable.
I downloaded the DDD Sample Application (based on book by Eric Evans) and it uses a hsqldb. However, I can't seem to find how this db is set up. I opened the project in Intellij and everything builds like a charm. But nowhere do I find such a hsqldb... I'm not an experienced Java developer, so I'm probably missing something. Anyone that can answer this for me?
HSQLDB (also called HypersonicDB) is usually used as an embedded SQL database in trivial java apps. You can download it here. It's very simple to set up, and usually works just by having the JAR file in your classpath, the sample app should have the appropriate config.