Compare commits

..

8 Commits

Author SHA1 Message Date
修改密码漏洞修复完成 4481a91709 db chage 5 months ago
wenfei d00c46707a remove .idea 5 months ago
wenfei 9377c863a2 df 6 months ago
wenfei d73a8a4805 change config fo sqlserver 6 months ago
修改密码漏洞修复完成 56a4808489 df 6 months ago
修改密码漏洞修复完成 c9a348f26c change db 6 months ago
WIN-GO9R0BBSA6U\Administrator 06ba7b7806 change db ip 6 months ago
WIN-GO9R0BBSA6U\Administrator 0e57e52280 db change to sqlserver 6 months ago

@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile default="true" name="Default" enabled="true" />
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="admin-client-temperature" />
</profile>
</annotationProcessing>
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="admin-client-temperature" options="-parameters" />
</option>
</component>
</project>

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
</component>
</project>

@ -1,36 +0,0 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="JavaDoc" enabled="true" level="WARNING" enabled_by_default="true">
<option name="TOP_LEVEL_CLASS_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="" />
</value>
</option>
<option name="INNER_CLASS_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="" />
</value>
</option>
<option name="METHOD_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="@return@param@throws or @exception" />
</value>
</option>
<option name="FIELD_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="" />
</value>
</option>
<option name="IGNORE_DEPRECATED" value="false" />
<option name="IGNORE_JAVADOC_PERIOD" value="true" />
<option name="IGNORE_DUPLICATED_THROWS" value="false" />
<option name="IGNORE_POINT_TO_ITSELF" value="false" />
<option name="myAdditionalJavadocTags" value="date" />
</inspection_tool>
</profile>
</component>

@ -1,70 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="http://47.242.184.139:8081/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven-snapshots" />
<option name="name" value="maven-snapshots" />
<option name="url" value="http://47.242.184.139:8081/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven-public" />
<option name="name" value="maven-public" />
<option name="url" value="http://192.168.1.24:8081/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="maven-releases" />
<option name="name" value="maven-releases" />
<option name="url" value="http://47.242.184.139:8081/repository/maven-releases/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven-snapshots" />
<option name="name" value="maven-snapshots" />
<option name="url" value="http://47.242.184.139:8081/repository/maven-snapshots/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven-releases" />
<option name="name" value="maven-releases" />
<option name="url" value="http://47.242.184.139:8081/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven-central" />
<option name="name" value="maven-central" />
<option name="url" value="http://47.242.184.139:8081/repository/maven-central/" />
</remote-repository>
<remote-repository>
<option name="id" value="repository" />
<option name="name" value="repository" />
<option name="url" value="http://47.242.184.139:8081/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven-central" />
<option name="name" value="maven-central" />
<option name="url" value="http://47.242.184.139:8081/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="maven-public" />
<option name="name" value="maven-public" />
<option name="url" value="http://47.242.184.139:8081/repository/maven-public/" />
</remote-repository>
</component>
</project>

@ -1,14 +0,0 @@
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="corretto-1.8" project-jdk-type="JavaSDK" />
</project>

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

@ -1,207 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="eacd3dd8-1e95-428c-a6af-1aadb9921989" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/jarRepositories.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/jarRepositories.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/AdminClientTemperatureApplication.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/AdminClientTemperatureApplication.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/controller/JdbcDemoController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/controller/JdbcDemoController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/controller/WeatherController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/controller/WeatherController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/entity/Temperature.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/entity/Temperature.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/entity/WebServiceCity.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/entity/WebServiceCity.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/entity/WebServiceProvince.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/entity/WebServiceProvince.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/entity/WebServiceWeatherInfo.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/rehome/mqttclienttemperature/entity/WebServiceWeatherInfo.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application.yml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Enum" />
<option value="Class" />
<option value="Interface" />
</list>
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="MavenImportPreferences">
<option name="generalSettings">
<MavenGeneralSettings>
<option name="userSettingsFile" value="C:\Users\Administrator\.m3\settings.xml" />
</MavenGeneralSettings>
</option>
</component>
<component name="MavenRunner">
<option name="skipTests" value="true" />
</component>
<component name="ProjectId" id="2SgLAAD7fmKYxLWgfQc7MNYMQRi" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="ASKED_MARK_IGNORED_FILES_AS_EXCLUDED" value="true" />
<property name="RequestMappingsPanelOrder0" value="0" />
<property name="RequestMappingsPanelOrder1" value="1" />
<property name="RequestMappingsPanelWidth0" value="75" />
<property name="RequestMappingsPanelWidth1" value="75" />
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$USER_HOME$/Documents/admin-client-temperature" />
<property name="nodejs_package_manager_path" value="npm" />
<property name="project.structure.last.edited" value="Project" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.20052427" />
<property name="settings.editor.selected.configurable" value="MavenSettings" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="C:\Users\Administrator\IdeaProjects\admin-client-temperature" />
<recent name="$PROJECT_DIR$/src/main/resources" />
<recent name="$PROJECT_DIR$/src/main/resources/ssl" />
</key>
<key name="CopyClassDialog.RECENTS_KEY">
<recent name="com.rehome.mqttclienttemperature.entity" />
<recent name="com.rehome.mqttclienttemperature.config" />
<recent name="com.rehome.mqttclienttemperature" />
<recent name="com.rehome.mqttclienttemperature.controller" />
<recent name="com.rehome.mqttclienttemperature.webservice" />
</key>
</component>
<component name="RunAnythingCache">
<option name="myCommands">
<command value="mvn install:install-file -Dfile=C:\Users\Administrator\ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar" />
<command value="mvn install:install-file -Dfile=C:\\Users\\Administrator\\ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar " />
<command value="mvn install:install-file -Dfile=C:\Users\Administrator\ojdbc6.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar " />
</option>
</component>
<component name="RunManager">
<configuration name="AdminClientTemperatureApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<module name="admin-client-temperature" />
<option name="SPRING_BOOT_MAIN_CLASS" value="com.rehome.mqttclienttemperature.AdminClientTemperatureApplication" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="SshConsoleOptionsProvider">
<option name="myEncoding" value="UTF-8" />
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="eacd3dd8-1e95-428c-a6af-1aadb9921989" name="Default Changelist" comment="" />
<created>1689563130167</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1689563130167</updated>
<workItem from="1689563133484" duration="82000" />
<workItem from="1689563460455" duration="704000" />
<workItem from="1711940831815" duration="442000" />
<workItem from="1711941337955" duration="5101000" />
<workItem from="1711954046274" duration="238000" />
<workItem from="1711954364749" duration="297000" />
<workItem from="1711955359433" duration="1952000" />
<workItem from="1711962368857" duration="191000" />
<workItem from="1711962630863" duration="41000" />
<workItem from="1729042540045" duration="25874000" />
<workItem from="1729130149340" duration="736000" />
<workItem from="1729131578985" duration="315000" />
<workItem from="1729131906683" duration="30000" />
<workItem from="1729133995491" duration="634000" />
<workItem from="1729134910615" duration="408000" />
<workItem from="1729135552784" duration="948000" />
<workItem from="1729146177964" duration="41000" />
<workItem from="1729146225566" duration="28000" />
<workItem from="1729146274348" duration="61000" />
<workItem from="1729158964614" duration="52000" />
<workItem from="1729159441991" duration="263000" />
<workItem from="1729159780560" duration="18000" />
<workItem from="1729163602114" duration="856000" />
<workItem from="1729164976826" duration="1670000" />
<workItem from="1729166709620" duration="25000" />
<workItem from="1729167075555" duration="196000" />
<workItem from="1729750638776" duration="637000" />
<workItem from="1729774152060" duration="312000" />
<workItem from="1729848263634" duration="521000" />
<workItem from="1730257563468" duration="1831000" />
<workItem from="1730260900938" duration="1898000" />
<workItem from="1730778836030" duration="60000" />
<workItem from="1731121098979" duration="327000" />
<workItem from="1731121695314" duration="1328000" />
<workItem from="1731123043189" duration="844000" />
<workItem from="1731234451031" duration="1422000" />
<workItem from="1731235944796" duration="187000" />
<workItem from="1733300206445" duration="3706000" />
<workItem from="1733361121432" duration="15033000" />
<workItem from="1734009610713" duration="7296000" />
<workItem from="1734240113104" duration="970000" />
<workItem from="1734089495981" duration="20000" />
<workItem from="1735610206256" duration="729000" />
<workItem from="1737893859369" duration="553000" />
<workItem from="1739253198003" duration="10000" />
<workItem from="1740888797352" duration="83000" />
<workItem from="1744771655739" duration="2866000" />
<workItem from="1744774685514" duration="882000" />
<workItem from="1744792532086" duration="1668000" />
<workItem from="1744794454586" duration="20000" />
<workItem from="1744794979826" duration="1104000" />
<workItem from="1744852581603" duration="362000" />
<workItem from="1744855448002" duration="3224000" />
<workItem from="1744859279484" duration="19530000" />
<workItem from="1744904630034" duration="1675000" />
<workItem from="1745386795071" duration="75000" />
<workItem from="1745736824042" duration="61000" />
<workItem from="1745736893223" duration="698000" />
<workItem from="1745737637437" duration="1188000" />
<workItem from="1745742226908" duration="221000" />
<workItem from="1746845007085" duration="368000" />
<workItem from="1746845397716" duration="267000" />
<workItem from="1746845668767" duration="670000" />
<workItem from="1747540249390" duration="112000" />
<workItem from="1747540902720" duration="2539000" />
<workItem from="1747553672823" duration="9032000" />
<workItem from="1747564622457" duration="10803000" />
<workItem from="1747644155888" duration="5369000" />
<workItem from="1747658293616" duration="1309000" />
<workItem from="1748326418665" duration="908000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
<option name="oldMeFiltersMigrated" value="true" />
</component>
<component name="XSLT-Support.FileAssociations.UIState">
<expand />
<select />
</component>
</project>

@ -2,6 +2,7 @@ package com.rehome.mqttclienttemperature;
import com.rehome.mqttclienttemperature.service.TemperatureService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
@ -17,7 +18,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import java.util.Map;
@Slf4j
@EnableJpaAuditing
@EnableScheduling
@EnableAsync
@ -47,17 +48,17 @@ public class AdminClientTemperatureApplication implements CommandLineRunner, App
//在这里可以调用applicationContext了
Map<String, Object> controllers = applicationContext.getBeansWithAnnotation(RequestMapping.class);
for (Map.Entry<String, Object> entry : controllers.entrySet()) {
System.out.println("------------------------");
System.out.println(entry.getKey());//demo1Controller
log.info("------------------------");
log.info(entry.getKey());//demo1Controller
}
try {
if (temperatureService != null) {
System.out.println("------------------------");
System.out.println("TemperatureController is not empty");
log.info("------------------------");
log.info("TemperatureController is not empty");
MqttRSAClient client = new MqttRSAClient();
client.start(temperatureService);
}else {
System.out.println("temperatureService is empty");
log.info("temperatureService is empty");
}
} catch (Exception ex) {
ex.printStackTrace();

@ -4,6 +4,7 @@ package com.rehome.mqttclienttemperature;
import com.rehome.mqttclienttemperature.service.TemperatureService;
import com.rehome.mqttclienttemperature.utils.MqttSSLSocketFactory;
import com.rehome.mqttclienttemperature.utils.UUIDUtil;
import lombok.extern.slf4j.Slf4j;
import org.eclipse.paho.client.mqttv3.*;
import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence;
@ -14,7 +15,7 @@ import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
// Xiaomi_8B2C
@Slf4j
public class MqttRSAClient {
/**
* ip
@ -93,7 +94,7 @@ public class MqttRSAClient {
@Override
public void connectionLost(Throwable throwable) {
System.out.println("connectionLost");
log.info("connectionLost");
try {
mqttClient.reconnect();
} catch (MqttException e) {
@ -104,15 +105,15 @@ public class MqttRSAClient {
@Override
public void messageArrived(String s, MqttMessage mqttMessage) {
String strData = new String(mqttMessage.getPayload());
System.out.println("topic:"+s);
System.out.println("Qos:"+mqttMessage.getQos());
System.out.println("message RSA:"+strData);
//temperatureService.saveTemperature(strData,s);
log.info("topic:"+s);
log.info("Qos:"+mqttMessage.getQos());
log.info("message RSA:"+strData);
temperatureService.saveTemperature(strData,s);
}
@Override
public void deliveryComplete(IMqttDeliveryToken iMqttDeliveryToken) {
System.out.println("deliveryComplete---------"+ iMqttDeliveryToken.isComplete());
log.info("deliveryComplete---------"+ iMqttDeliveryToken.isComplete());
}
@Override
@ -128,17 +129,17 @@ public class MqttRSAClient {
timer = new Timer();
timer.schedule(new TimerTask() {
public void run() {
System.out.println("-------设定要指定任务--------");
log.info("-------设定要指定任务--------");
try {
//判断拦截状态,这里注意一下,如果没有这个判断,是非常坑的
if (!mqttClient.isConnected()) {
System.out.println("***** 没有连接到服务器 *****");
System.out.println("***** client to connect *****");
log.info("***** 没有连接到服务器 *****");
log.info("***** client to connect *****");
// 重新连接
mqttClient.connect(options);
}
if (mqttClient.isConnected()) {//连接成功,跳出连接
System.out.println("***** connect success *****");
log.info("***** connect success *****");
}
} catch (MqttException e1) {
e1.printStackTrace();

@ -70,7 +70,7 @@ public class JdbcDemoController {
//配置数据源
ds.setId("1");
ds.setName("mysql");
ds.setUrl("jdbc:mysql://192.168.1.24:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true");
ds.setUrl("jdbc:mysql://192.168.3.9:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true");
ds.setUsername("root");
ds.setPassword("Skyinno251,");
ds.setDriver("com.mysql.cj.jdbc.Driver");
@ -98,7 +98,7 @@ public class JdbcDemoController {
CompletableFuture<String> future = CompletableFuture.supplyAsync(() -> {
String sql = "select * from temperature where id = ?";
List<Object> jdbcParamValues = new ArrayList<>();
for (int i = 2292104; i < 2298700; i++) {
for (int i = 2315916; i < 2318916; i++) {
jdbcParamValues.add(i + 1);
Gson gson = new Gson();
ResponseDto responseDto = JdbcUtil.executeSql(ds, sql, jdbcParamValues);

@ -26,19 +26,17 @@ import java.util.Date;
//同时创建普通索引和组合索引,注意普通索引每个索引名都不同,注意组合索引每个索引名都相同
@Table(indexes = {@Index(name = "idx_dataDate", columnList = "dataDate"),@Index(name = "idx_locationDesc", columnList = "locationDesc"),@Index(name = "idx_dataHour", columnList = "dataHour"),@Index(name = "idx_dataMinute", columnList = "dataMinute"),@Index(name = "data_date_location_desc", columnList = "dataDate"),@Index(name = "data_date_location_desc", columnList = "locationDesc")})
public class Temperature implements Serializable {
// @Id
// @GeneratedValue(strategy = GenerationType.IDENTITY)
// @ApiModelProperty(value = "主键")
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@ApiModelProperty(value = "主键")
@GeneratedValue(strategy = GenerationType.SEQUENCE,generator="temperature_seq")
@SequenceGenerator(name="temperature_seq", sequenceName="temperature_seq_appserver")
private Long id;
@ApiModelProperty(value = "温度")
@Column(length=10)
private String temperature;
@ApiModelProperty(value = "湿度")
@Column(length=10)
private String humidity;
@ApiModelProperty(value = "日期")

@ -16,13 +16,9 @@ import java.util.Date;
@Data
@Entity
public class WebServiceProvince implements Serializable {
// @Id
// @GeneratedValue(strategy = GenerationType.IDENTITY)
// @ApiModelProperty(value = "主键")
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "webService_province_seq")
@SequenceGenerator(name = "webService_province_seq", sequenceName = "webService_province_seq")
private Long id;
@ApiModelProperty(value = "洲、国内外省份")

@ -29,13 +29,9 @@ import java.util.Date;
// @Index(name = "data_create_date_city_name", columnList = "cityName"), @Index(name = "data_create_date_city_name", columnList = "createDate")})
public class WebServiceWeatherInfo {
// @Id
// @GeneratedValue(strategy = GenerationType.IDENTITY)
// @ApiModelProperty(value = "主键")
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "webService_weather_info_seq")
@SequenceGenerator(name = "webService_weather_info_seq", sequenceName = "webService_weather_info_seq")
private Long id;
@Column(length = 100)

@ -6,38 +6,29 @@ server:
logging:
level:
root: INFO
file:
path: /root/temperature
spring:
datasource:
type: com.zaxxer.hikari.HikariDataSource
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=appserver;encrypt=false;
# username: sa
# password: Skyinno251,
#url: jdbc:mysql://192.168.3.29:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://127.0.0.1:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.2.18:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.1.92:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.3.7:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.3.7:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.1.24:3306/weather?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.3.24:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.3.9:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://192.168.1.24:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
#url: jdbc:mysql://47.242.184.139:3306/appserver?useUnicode=true&characterEncoding=utf-8&useSSL=false&autoReconnect=true
# driverClassName: com.mysql.cj.jdbc.Driver #com.mysql.cj.jdbc.Driver com.mysql.jdbc.Driver
# username: root
# password: Skyinno251,
driverClassName: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@192.168.3.9:1521/orcl
username: appserver
password: appserver
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://192.168.3.29:1433;DatabaseName=appserver;encrypt=false;
username: sa
password: 452131wW
jpa:
database: oracle # 配置 DBMS 类型
database: sql_server # 配置 DBMS 类型
show-sql: true # 配置是否将执行的 SQL 输出到日志
open-in-view: true
hibernate:
ddl-auto: update # 第一次建表create 后面用update要不然每次重启都会新建表
# hibernate:
# ddl-auto: update # 第一次建表create 后面用update要不然每次重启都会新建表
properties:
hibernate:
ddl-auto: update
hbm2ddl:
auto: update
default_schema: dbo
format_sql: true
servlet:
multipart:
# 开启 multipart 上传功能

Loading…
Cancel
Save