Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Analysis of wrong questions in java

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "java wrong topic Analysis". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

How to get the files in the same directory

How do I get its path?

Solution

Direct new Fiel ("b.properties"); will do.

Unless you are uploading files and submitting forms, you can take advantage of IO streams to get to the path.

If you put it directly in the same directory, you don't have to think about how to get the path.

Generally, when reading a file directly, just enter the relative path

Expansion

1. Relative path and absolute path

Get the files under the 2.resource directory

Problem excel Import data Card OOM

Has anyone ever written about importing Excel tables into the database in bulk? when I run for around 300, I get stuck [covering my face] [covering my face]

Solution

First deal with the data and then pour in do not deal with a lead it is easy to cause database dirty numbers due to exceptions in the process of processing data.

According to

Problem: it cannot be installed and run after the database is deleted.

Answer: the previous files were not cleaned up.

Maybe the server name is occupied.

Sc delete server name (MySQL)

Run the tocmd.bat of the bin folder directly (as an administrator)

Mysqld-initialize-insecure

Mysqld-install MySQL

Net start MySQL

Mysql-u root-p

Administrator cd to bin to run

Expansion

How to use the database installation-free version

Question: do you want to throw an IO exception

Solution

Throw IOException to the io operation.

It can be wrapped in try. So there's no need to declare.

This is the end of the content of "java wrong title Analysis". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

  • Spring cxf configuration

    Version-- cxf-2.5.2

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report