Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spring boot 3.06 Java 17 maven template (root and nbi/sbi projects) with swagger #1

Open
obriensystems opened this issue May 13, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@obriensystems
Copy link
Member

obriensystems commented May 13, 2023

Screenshot 2023-05-13 at 16 01 25
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>dev.obrienlabs.biometric</groupId>
    <artifactId>biometric-root</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>biometric-root</name>
    <description>biometric root project</description>
    <packaging>pom</packaging>
    <build>
      <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <source>17</source>
          <target>17</target>
        </configuration>
      </plugin>
     </plugins>
    </build>
    <modules>
      <module>biometric-nbi</module>
      <!--module>biometric-sbi</module-->
    </modules>
</project>
Screenshot 2023-05-13 at 15 55 34

replace javax with jakarta

//import javax.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletRequest;

Add GCP credentials for running in docker

gcloud auth application-default login 
cp ~/.config/gcloud/application_default_credentials.json $TARGET_DIR
@obriensystems obriensystems added the enhancement New feature or request label May 13, 2023
@obriensystems obriensystems self-assigned this May 13, 2023
obriensystems added a commit that referenced this issue May 13, 2023
obriensystems added a commit that referenced this issue May 13, 2023
obriensystems added a commit that referenced this issue May 13, 2023
obriensystems added a commit that referenced this issue May 13, 2023
obriensystems added a commit that referenced this issue May 5, 2024
@obriensystems
Copy link
Member Author

spring boot 2.5.15 for swagger 2.9.2

9a3ffb7

Screenshot 2024-05-05 at 17 48 23
	modified:   pom.xml
	new file:   src/main/java/dev/obrienlabs/biometric/nbi/SwaggerConfig.java
	modified:   src/main/java/dev/obrienlabs/biometric/nbi/controller/ApiController.java
	modified:   src/test/java/dev/obrienlabs/biometric/biometricnbi/BiometricNbiApplicationTests.java

obriensystems added a commit that referenced this issue May 5, 2024
obriensystems added a commit that referenced this issue May 6, 2024
obriensystems added a commit that referenced this issue Jul 5, 2024
@obriensystems
Copy link
Member Author

Dockerize

curl -X GET "http://127.0.0.1:8888/nbi/api/getGps?ac=0&action=u2&al=0&arx=0&ary=0&arz=0&be=0&grx=0&gry=0&grz=0&gsx=0&gsy=0&gsz=0&hr1=0&hr2=0&hrd1=0&hrd2=0&hu=0&lax=0&lay=0&laz=0&lg=0&li=0&lt=0&mfx=0&mfy=0&mfz=0&p=0&pr=0&px=0&rvx=0&rvy=0&rvz=0&s=0&te=0&ts=0&u=0&up=0" -H "accept: */*"

obriensystems added a commit that referenced this issue Jul 5, 2024
obriensystems added a commit that referenced this issue Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant