Skip to content

Commit

Permalink
👨🏻‍💻[IDE] JDK11 and refactor classes
Browse files Browse the repository at this point in the history
  • Loading branch information
hkoci committed Mar 16, 2022
1 parent b12e6cf commit 45b2d56
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 11 deletions.
18 changes: 18 additions & 0 deletions src/backend/blockchainIOT/nb-configuration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<netbeans.hint.jdkPlatform>JDK_11</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>
6 changes: 3 additions & 3 deletions src/backend/blockchainIOT/nbactions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<exec.vmArgs></exec.vmArgs>
<exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args>
<exec.appArgs></exec.appArgs>
<exec.mainClass>uk.ac.brunel.blockchainIOT.springBoot.BlockchainIotApplication</exec.mainClass>
<exec.mainClass>uk.ac.brunel.blockchainIOT.springBoot.springApp</exec.mainClass>
<exec.executable>java</exec.executable>
</properties>
</action>
Expand All @@ -30,7 +30,7 @@
<exec.vmArgs>-agentlib:jdwp=transport=dt_socket,server=n,address=${jpda.address}</exec.vmArgs>
<exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args>
<exec.appArgs></exec.appArgs>
<exec.mainClass>uk.ac.brunel.blockchainIOT.springBoot.BlockchainIotApplication</exec.mainClass>
<exec.mainClass>uk.ac.brunel.blockchainIOT.springBoot.springApp</exec.mainClass>
<exec.executable>java</exec.executable>
<jpda.listen>true</jpda.listen>
</properties>
Expand All @@ -47,7 +47,7 @@
<properties>
<exec.vmArgs></exec.vmArgs>
<exec.args>${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}</exec.args>
<exec.mainClass>uk.ac.brunel.blockchainIOT.springBoot.BlockchainIotApplication</exec.mainClass>
<exec.mainClass>uk.ac.brunel.blockchainIOT.springBoot.springApp</exec.mainClass>
<exec.executable>java</exec.executable>
<exec.appArgs></exec.appArgs>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BlockchainIotApplication {
public class springApp {

public static void main(String[] args) {
SpringApplication.run(BlockchainIotApplication.class, args);
}

}
public static void main(String[] args) {
SpringApplication.run(springApp.class, args);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

@RestController
@RequestMapping(path = "/api/fog")
public class BlockchainIotController {
public class springController {

//Get specific block using blockNum identifier param
@GetMapping(value = "/block")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class BlockchainIotApplicationTests {

@Autowired
private BlockchainIotController restController;
private springController restController;

@Test
void contextLoads() throws Exception {
Expand Down

0 comments on commit 45b2d56

Please sign in to comment.