-- lookup parent from repository --></parent><groupId>com.gfg.microservices</groupId><artifactId>currency-exchange-sample-service</artifactId><version>0.0.1-SNAPSHOT</version><name>currency-exchange-sample-service</name><description>Demo project for Spring Boot</description><properties><java.versi...
放在C:\Users\hp\IdeaProjects 下 当使用 idea 发布 springboot 项目直接运行,而不是打包为 jar 运行的时候,运行上面的代码获取的是项目的位置: 运行上面代码获得路径:C:\Users\hp\IdeaProjects 完整代码 publicstaticStringgetWebFile(){ String jar_parent=""; try{ jar_parent =newFile(ResourceUtils.getURL(...
让我们回到Spring Boot,我们直到在Spring Boot里面如果一个Bean初始化错误,Tomcat根本就启动不起来,那么也就是说在Spring Boot web应用中是先加载bean,在启动Tomcat的。那么在Spring Boot 中是如何加载类的呢,我们同样的还是在ClassLoader加载类上打断点来观察这个过程。 那Spring Boot 是如何扫描的呢? 首先JVM如要直...
import java.io.*; class GFG { public static void main(String[] args) { try { // Create a PrintWriter instance PrintWriter writer = new PrintWriter(System.out); // Print the value ‘GFG’ // to this stream using print() method // This will put the in the // stream till it is p...
1.没有opc服务器、自己搭建链接,采用KEPServerEX 6 Configuration工具模拟opc服务器数据,工具下载地址:https://pan.baidu.com/share/init?surl=3Bc0gfGxCWo8fddTt-ut-w密码:ykj2 工具按照一路默认next就行 参考博客大佬地址:https://www.cnblogs.com/ioufev/p/9928971.html ...
01、SpringBoot+Maven环境搭建架子 02、使用logback记录项目的运行时信息 03、接入common/guava/Hutool/Lombok/fastjson/OkHttp工具包 04、接入腾讯云发送一条短信 05、使用SpringData JPA将短信发送记录至MySQL 06、项目接入Kafka 07、 项目Gitee链接:gitee/austin 项目GitHub链接:https://github.com/austin 对线面试官...
import java.util.Set; public class GFG { public static void main(String[] args) { Set...
importjava.util.*;publicclassGFG{// Main methodpublicstaticvoidmain(String[] args){ Map<String, Integer> map =newHashtable<>(); map.put("Pen",10); map.put("Book",500); map.put("Clothes",400); map.put("Mobile",5000); System.out.println("hashTable: "+ map.toString());// 为...
一.OPC1.使用的OPCserver软件:模拟仿真用的 MatrikonOPCSimulation(50M),https://pan.baidu.com/share/init?surl=9rcHEBGSWGMSkRo1kEY6fQ,密码: mcur项目使用KEPServer V6(450M,中文),https://pan.baidu.com/share/init?surl=3Bc0gfGxCW java opc 获取值 ...
java.util.*; public class GFG { // Main method public static void main(String[] args) { Map<Integer, String> map = new Hashtable<>(); map.put(1, "100RS"); map.put(2, "500RS"); map.put(3, "1000RS"); System.out.println("hashTable: " + map.toString()); // 不存在健...