Can we obfuscate java web application using proguard?
I have developed web application using spring boot, Now i have to deploy .WAR file of project at client end but for security reason i have to obfuscate the code.
Please guide me the proper way to obfuscate the code using Proguard.
Related
I have a project and I don't want to use AppEngine flex as they are expensive. So I converted my project to standard by converting spring boot application from jar to war
When I try to deploy the project to the app engine it is picking app.yaml rather appening-web.xml and deploying as a flex project rather standard.
Did anyone face the same?
Make sure your appengine-web.xml file is under the src/main/webapp/WEB-INF directory. Your structure should look lke this:
For more detailed information about the App Engine Standard configuration files for Java please check this documentation. You can also check the steps in this GitHub page on how to deploy a Spring Boot simple Hello World app in App Engine Standard.
I tried searching on the web but I could not find any relevant tutorial or how-to for integrating JNI shared libraries into Spring Boot project. I would like to integrate GDAL library with a small Spring Boot REST application.
Is it even possible to use JNI with embedded Tomcat?
Can someone provide links or an explanation on how to include compiled jar and actual library files into a Spring Boot project?
Maven would be a prefered build option, but gradle would work too.
I'm facing exactly the same situation.
My app has an embedded JNI library that i cannot to embedd at WAR file.
To run from Eclipse, it executes normally but for WAR file build it's not possible.
I believe that the solution key is about the repackage goal of 'spring-boot-maven-plugin' but I got few information about that.
Regards,
I am quite new to Spring boot and I have just created a small spring boot mvc web application as a jar.
Is there some kind of Web Application Manager like with Tomcat, where one can stop or undeploy/delete?
Or do I have to manually upload the jar to my server and manually type in the console java -jar myFile.jar?
How do I stop/restart my jar web application?
How do I display/list all my active running jar web applications?
Any help is appreciated!
Is there some kind of Web Application Manager like with Tomcat, where one can stop or undeploy/delete?
Nope. There isn't and you actually don't need one. As mentioned in comment by Shankar do read this question.
Or do I have to manually upload the jar to my server and manually type in the console java -jar myFile.jar?
You don't upload you myFile.jar application to tomcat, spring-boot has embedded Tomcat server. When you run java -jar myFile.jar sringboot apliication starts this embedded tomcat server and runs your application in it.
How do I stop/restart my jar web application?
You can simply kill the java -jar myFile.jar process by pressing Ctlr + C.
How do I display/list all my active running jar web applications?
Each Springboot application has its own embedded tomcat server, so this is N/A.
Now if you want to deploy your spring boot application in standalone Tomcat server where you can see the GUI, app manager, start/stop etc. create a WAR file instead of JAR.
Read this Guide on converting jar-to-war.
In short, creating a WAR file answers all your questions.
I have a problem: I need to create a jar from a web application (I'm using freemarker) and then refer this jar from within a different war.
In practice I need to follow the spring batch admin approach.
How can I do it?
I'm using spring for the first web app.
Many thanks
I would like to know if anyone has any experience in using STS to create a Spring-enabled GWT web application without using Spring ROO.
There are 2 scenarios that I have.
I have an existing GWT application (not Spring-enabled, built in Eclipse 3.7) that I want to convert to a Spring-enabled GWT application in STS. I want STS to pick up that this is now Spring-enabled so that I can use the built-in features of STS for Spring.
Create a new GWT web application that is Spring-enabled in STS, but without using Spring ROO.
I have as of yet found no tutorials on how to do either. All the examples that point to creating a Spring-enabled GWT web application in STS use ROO to scaffold it for them.
Sorry if it is a bit unclear what I mean. Feel free to comment and I will try to explain more.
Thanks!
One possibility is to start with a Roo project, enable GWT, and then perform a push-in refactoring. This will remove the Roo dependencies and what remains is a pure spring project that uses GWT.
gwt-spring-starter-app will help you create a maven project with spring & gwt integrated. You can then import it as a maven project into STS. That should get everything correctly setup.