I am trying to get OIDC working with Java Spring Boot. Specifically the example app
here.
I am a newbie to this stuff, so can anyone give me brief instructions on how to run that app?
I have it in Eclipse (with STS4) as existing maven project (as per these instructions). When I run it I pick 'Java application' which gives me some examples including version, Licence, roller etc etc. I do not know which, if any, of these is correct, nor how do I pass parameters etc. Any pointers are gratefully received.
I think example code is not Spring boot app. (just Spring web app) You can run it via Eclipse / Tomcat.
If you review below link you can see details in section 6;
Eclipse allows us to embed servers to add web project deployment in the normal workflow without navigating away from the IDE
Check this out: tomcat-deploy-war
From the project overview list, pick the Application class. Right-click on it to open the context menu and choose "Run as -> Spring Boot App". Have fun.
In eclipse Project Explorer, right click the project name -> select "Run As" -> "Maven Build..."
In the goals, enter spring-boot:run
then click Run button.
In STS right click on Project > Run as > Spring Boot App
If you are not getting any option then just run the main method which is in the class SampleSpringBootApplication. Spring Boot will take care of all the rest (starting the embedded tomcat which will host your sample application).
Related
What file should I run in order to open and see how my Play project works?
Here is a screen shot of my project opened in Intellij Idea:
Please have a look.
For more information you should read - Getting Started with Play 2.x
According to documentation:
A play application has several entry points, one for each URL. We call
these methods 'action' methods. Action methods are defined in special
classes that we call 'controllers'
For running Play Framework applications with Intellij Idea tools you need to download and install Scala plugin.
Then press the down arrow in you right top corner -> Edit Configurations -> + -> Play 2 App -> select play module
You can run you play-app via command line executing play run under the application root directory.
Userful resources:
Configuring Intellij Idea for runnin Play-application
Quick quide to starting up the Play project
Is it possible to automatically reload a Java AppEngine project (which uses Maven) after making changes to the code? I.e. after making a change to the code (such as a JSP) I'd like to see those changes straight away in a web browser without having to re-run the project. Is this possible?
I have done the following:
Created a Maven project using the Google's tutorial
Imported it into Eclipse using Google's instructions.
Enabled the "Build Automatically" setting on my project in Eclipse (which this article suggests is required).
Run the dev server inside the ear project (mvm appengine:devserver)
However, changes to JSPs aren't automatically reflected when I view the page in a web browser. I can only see the changes by installing (mvn clean install) and then re-running the dev server.
Projects created using the Google Eclipse plugin reload automatically however, I'd prefer to use Maven as it'll make it easier to install other software (such as the Spring Framework).
I think I've got to the bottom of this:
Import only the web Maven project (not the main project) into Eclipse (as suggested in the Eclipse Web Tools documentation)
Create a server as per Google's documentation. The web site should automatically reload 15 seconds after you make a change to the code. To change this...
Open the "servers" tab, right-click on your server and select "open".
Expand the "Publishing" section and decrease the value for "Automatically public after a build event.
Note: the "auto scan for resources change setting" doesn't seem to make any difference.
I just wanted to spend half an hour to try out spring roo - but failed miserably.
The Spring roo project page on spring.io simply tells to add a maven dependency. But I'm not aware of any public maven repository providing it
The Project page on github includes all the sources, but the readme starts with
These instructions are aimed at experienced developers looking to
develop Spring Roo itself. If you are new to Spring Roo [..] we recommend that you visit
the Spring Roo home page and download an official release: http://www.springsource.org/roo
Needless to say, this url points back to the github page..
Is there any pain-free way of installing spring roo? (let's assume Windows 7, JDK 1.7)
I know that in the time of writing this I could have installed it from source - but I think a rapid prototyping framework should do better.
Adding the jar to your project is not enough, because you need the Roo shell/console to run while you are developing your project.
Its quite simple using the Spring IDE/Roo plugin. You can download the Spring Source Tool Suite or add the update site (same link at the bottom) to your Eclipse version (I did not test the update site so far).
In your IDE click File -> New -> Spring Roo Project. Be sure to set the appropriate top level package here, i.e. com.yourdomain.projectname (thats where roo will create its artifacts; like a home directory in Linux it can be abbreviated by typing ~ in the roo console). Select "war" as the packaging provider.
Unfortunately the project might not get the "Dynamic web project" facade and not all maven related source folders might have been created (seems to be a bug?). In that case right click the project name -> preferences -> Project Facets -> Dynamic Web Project 3.0. Be sure to click the "Further conf..." link at the bottom and insert 'src/main/webapp' as the content directory.
After that right click your project again -> Spring Tools -> Open Roo shell. And wait for the console to load. Then you can finally start with the "quick" start tutorial at line four, typing in 'hint' in the console. Also try crtl+space for content completion.
Have you tried this repository : http://spring-roo-repository.springsource.org/ ?
You can download the .zip file from here http://docs.spring.io/downloads/nightly/snapshot-download.php?project=ROO
Source: http://forum.spring.io/forum/spring-projects/roo/722228-where-to-download-spring-roo-command-line-shell-in-zip
I want to start using AngularJs and Java Spring for development purpose.I am using Eclipse as IDE . I want to configure my Eclipse to have these frameworks working seamlessly.
I know I may be asking too much,but trust me I have done much research on my part and you guys are my last resort.Any help would be much appreciated.
You'd first wanna make sure you have the JSDT installed.
Next thing is to install some dedicated tools for the job, so check out AngularJS Eclipse Tools. The AngularJS Eclipse Templates might be of help, too, and here's a visual guide written for it to get you started.
Also see the AngularJS Eclipse getting started page.
Since this answer had been posted, the AngularJS Eclipse plugin was released, as other answers stated. You might wanna check it out first.
Install JavaScript Development Tools (JSDT) and AngularJS Eclipse plug-in in eclipse from Eclipse Marketplace or Update site angularjs-eclipse-0.5.0,
Right Click on your project --> Configure --> Convert to Angularjs Project (as shown below)
Now you can see the Angularjs tags available as shown below.
.
Make sure the project is extracted on your hard disk.
In Eclipse go to the menu: File->New->Project.
Select "General->Project" and click on the next button.
Enter the project name in the "Project name:" field
Disable "Use default location" Click on the "Browse ..." button and select the folder that contains the project (the one from step 1)
Click on the "Finish" button
Right-click with the mouse on you're new project and click "Configure->Convert to AngularJS Project.."
Enable you're project goodies and click on the "OK" button.
Netbeans 8.0 (beta at the time of this post) has Angular support as well as HTML5 support.
Check out this Oracle article: https://blogs.oracle.com/geertjan/entry/integrated_angularjs_development
Since these previous answers above, there is now a release of an Eclipse Plugin to assist with development using AngularJS:
https://marketplace.eclipse.org/content/angularjs-eclipse
https://github.com/angelozerr/angularjs-eclipse/wiki/Installation---Update-Site (take a look around the other Wiki pages for information on features)
The release at the time of the answer is 0.1.0.
Please also checkout JSDT (http://www.eclipse.org/webtools/jsdt/) and also Eclipse VJET (http://eclipse.org/vjet/). The VJET project appears to be an attempt to provide better feature sets to the editor without being encumbered by the JSDT project (open source politics at play I guess).
Download angular js from this link and add as new software in eclipse
http://oss.opensagres.fr/angularjs-eclipse/0.6.0/
Configuration worked with Eclipse Mars 4.5 version.
1) Install Eclipse Mars 4.5 from
https://eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2
This comes with Tern and embedded Node.js server
2) Install AngularJS Eclipse plugin from Eclipse Marketplace
3) Configure node.js server to the embedded nodejs server within Eclipse (found in the eclipse plugins folder) at Windows-> Preferences -> JavaScript -> Tern -> Server -> node.js. No extra configurations are required.
4) Test configuration in a html or javascript file.
https://github.com/angelozerr/angularjs-eclipse
With current Angular 4 and 5 versions, there is an IDE for that.
Go to eclipse market place any search for 'Angular'. You will see the IDE and install it.
After that restart eclipse and follow the welcome messages to choose preferences.
How to start using eclipse with angular projects?
Considering you already have angular project and you want to import it into eclipse.
go to file > import > choose Angular Project
and It would be better to have your projects in a separate working set so that you will not confuse it with other kind of (like java)projects.
With Angular IDE You will have a terminal window too.
To open this type terminal in eclipse search box(quick access) on the top right corner.
Hi Guys if u are using angular plugin in eclipse that time is plugin is limited periods after that if u want to used this plugin then u pay it so i suggest to you used webstrome and visual code ide that are very easy and comfort to used so take care if u start and developed a angular app using eclipse
I downloaded and unzipped STS. I then started following the tutorial here that creates a simple Spring MVC application - http://www.javapassion.com/rebels/spring3_sts/
I go to File->New Spring Template Project->Spring MVC Project->(enter project name & package)->Finish
Then I right-click my project->Run as->Run on Server->Finish
I get the following -
I then opened the pom.xml file, which seems to contain the error, and here is what the error it contains -
So does anybody know what is going wrong and how to fix it?
Its very simple Jim. Don't panic.
Just right click on your project and then in Run As click on Maven Install option and go for some refreshments. When you'll come back after some time. Check your console. If it has stopped that means all your libraries needed to run this sample project is downloaded successfully by maven.
After that again right click on the project and go to Run As and click on Maven Clean that should build your project and create a war file for you. And don't forget to check the console that should say Build Successful.
After this just check your project structure. That should not show any red asteric mark anywhere in project.
And there you go. Now you can run your project successfully.
Hope this helps you.
Cheers.